-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (42 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3.1"
services:
memcached:
image: memcached:alpine
container_name: test1-memcached
mailhog:
image: mailhog/mailhog:latest
container_name: test1-mailhog
ports:
- "8091:8025"
redis:
image: redis:alpine
container_name: test1-redis
mysql:
image: mysql:5.7
container_name: test1-mysql
working_dir: /application
volumes:
- .:/application
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=test
ports:
- "8092:3306"
webserver:
image: nginx:alpine
container_name: test1-webserver
working_dir: /application
volumes:
- .:/application
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8090:80"
php-fpm:
build: phpdocker/php-fpm
container_name: test1-php-fpm
working_dir: /application
volumes:
- .:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini