-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (74 loc) · 1.53 KB
/
docker-compose.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
php:
env_file:
- ./config/php/.env
build:
context: .
dockerfile: ./dockerfiles/php.dockerfile
volumes:
- ../:/code
- ./config/php/memory-limit.ini:/usr/local/etc/php/conf.d/memory-limit-php.ini
networks:
- nginx_network
- db_mysql_network
- db_redis_network
nginx:
image: nginx:1.17
restart: always
ports:
- "80:80"
volumes:
- ../:/code
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- nginx_network
depends_on:
- php
db_mysql:
image: mysql:5.7
command: --max_allowed_packet=1G
volumes:
- drop-to-dock-mysql-volume:/var/lib/mysql
ports:
- "3306:3306"
env_file:
- config/db/.mysql
networks:
- db_mysql_network
db_mysql_test:
image: mysql:5.7
ports:
- "33061:3306"
env_file:
- config/db/.mysqlTest
networks:
- db_mysql_network
db_redis:
image: redis:5.0
env_file:
- config/db/.redis
ports:
- "6379:6379"
networks:
- db_redis_network
phpmyadmin:
image: phpmyadmin/phpmyadmin:4.8
ports:
- "8181:80"
env_file:
- config/db/.phpmyadmin
volumes:
- /sessions
networks:
- db_mysql_network
networks:
db_mysql_network:
driver: bridge
db_redis_network:
driver: bridge
nginx_network:
driver: bridge
volumes:
drop-to-dock-mysql-volume: