-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
83 lines (77 loc) · 1.94 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:
ssl_server:
build:
context: ./ssl_server/
container_name: nginx
depends_on:
- web_server
- cache_server
- database_server
- redis_server
volumes:
- ./ssl_server/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
- ./ssl_server/default:/etc/nginx/sites-enabled/default
- ./ssl_server/nginx.conf:/etc/nginx/nginx.conf
links:
- web_server
- cache_server
- database_server
- redis_server
ports:
- "80:80"
- "443:443"
redis_server:
build:
context: ./redis_server/
container_name: redis
depends_on:
- web_server
- cache_server
- database_server
volumes:
- ./redis_server/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
links:
- web_server
- database_server
ports:
- "6379:6379"
cache_server:
build:
context: ./cache_server/
container_name: varnish
depends_on:
- web_server
volumes:
- ./cache_server/default.vcl:/etc/varnish/default.vcl
- ./cache_server/varnish:/etc/default/varnish
- ./cache_server/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
ports:
- "6081:6081"
- "6082:6082"
links:
- web_server
- database_server
web_server:
build:
context: ./web_server/
container_name: apache2
volumes:
- ./magento2:/var/www/html
- ./web_server/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
ports:
- "8080:8080"
links:
- database_server
database_server:
build:
context: ./database_server/
args:
- mysql_password=mention_your_mysql_root_password
- mysql_database=mention_your_database_name
container_name: mysql
volumes:
- ./database_server/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
- ./database_server/mysql.sh:/etc/mysql.sh
ports:
- "3306:3306"