-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.dev.yml
131 lines (130 loc) · 2.78 KB
/
docker-compose.dev.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
services:
celery-worker:
entrypoint: [ '/entrypoint-celery-worker.sh' ]
env_file: ./envs/dev.env
volumes:
- ./vaas:/home/app/vaas
- ./plugins:/home/app/plugins
networks:
- vaas
- default
celery-cron-worker:
entrypoint: [ '/entrypoint-celery-cron-worker.sh' ]
env_file: ./envs/dev.env
volumes:
- ./vaas:/home/app/vaas
- ./plugins:/home/app/plugins
networks:
- vaas
- default
celery-routes-test:
entrypoint: [ '/entrypoint-celery-routes-test.sh' ]
env_file: ./envs/dev.env
volumes:
- ./vaas:/home/app/vaas
- ./plugins:/home/app/plugins
networks:
- vaas
- default
uwsgi:
entrypoint: ['/wait-for-it.sh', 'mysql:3306', '-t', '30', '--', '/entrypoint-uwsgi-dev.sh' ]
env_file: ./envs/dev.env
volumes:
- ./vaas:/home/app/vaas
- ./plugins:/home/app/plugins
networks:
- vaas
- default
celery-scheduler:
entrypoint: ['/wait-for-it.sh', 'uwsgi:3030', '-t', '60', '--', '/entrypoint-celery-scheduler.sh' ]
env_file: ./envs/dev.env
volumes:
- ./vaas:/home/app/vaas
- ./plugins:/home/app/plugins
networks:
- vaas
- default
# Varnishes & nginx
nginx-0:
build: ./docker/nginx
image: vaas-nginx
expose:
- "80"
networks:
vaas:
ipv4_address: 192.168.199.10
nginx-1:
build: ./docker/nginx
image: vaas-nginx
expose:
- "80"
networks:
vaas:
ipv4_address: 192.168.199.11
nginx-2:
build: ./docker/nginx
image: vaas-nginx
expose:
- "80"
networks:
vaas:
ipv4_address: 192.168.199.12
nginx-3:
build: ./docker/nginx
image: vaas-nginx
expose:
- "80"
networks:
vaas:
ipv4_address: 192.168.199.13
nginx-4:
build: ./docker/nginx
image: vaas-nginx
expose:
- "80"
networks:
vaas:
ipv4_address: 192.168.199.14
nginx-5:
build: ./docker/nginx
image: vaas-nginx
expose:
- "80"
networks:
vaas:
ipv4_address: 192.168.199.15
varnish-4.1:
build: ./docker/varnish-4.1
image: allegro/vaas-varnish-4.1
expose:
- "6082"
- "6081"
networks:
vaas:
ipv4_address: 192.168.199.4
varnish-6.0.2:
build: ./docker/varnish-6.0.2
image: allegro/vaas-varnish-6.0.2
expose:
- "6082"
- "6081"
networks:
vaas:
ipv4_address: 192.168.199.6
varnish-7.0:
build: ./docker/varnish-7.0
image: allegro/vaas-varnish-7.0
expose:
- "6082"
- "6081"
networks:
vaas:
ipv4_address: 192.168.199.7
networks:
vaas:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.199.0/24
gateway: 192.168.199.1