-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 978 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (37 loc) · 978 Bytes
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
mysql:
build: ./mysql
ports:
- "3306:3306"
volumes:
- ./mysql/my.cnf:/etc/mysql/my.cnf
- ./mysql/data:/var/lib/mysql
- /etc/localtime:/etc/localtime
environment:
- MYSQL_ROOT_PASSWORD=your_mysql_password
php-fpm:
build: ./php-fpm
ports:
- "9000:9000"
volumes:
- ./app:/usr/share/nginx/html
- ./php-fpm/php.ini-production:/usr/local/etc/php/php.ini:ro
- ./php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf:ro
- ./php-fpm/php-fpm.d:/usr/local/etc/php-fpm.d:ro
- /etc/localtime:/etc/localtime
links:
- mysql:mysql
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
- "8080:80"
volumes:
- ./app:/usr/share/nginx/html
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d/:/etc/nginx/conf.d/:ro
- ./nginx/ca/server.crt/:/etc/nginx/server.crt:ro
- ./nginx/ca/server.key/:/etc/nginx/server.key:ro
- /etc/localtime:/etc/localtime
links:
- php-fpm:__DOCKER_PHP_FPM__