-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
132 lines (125 loc) · 2.8 KB
/
docker-compose.yaml
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
132
version: "3"
services:
rabbit:
image: rabbitmq:3-management
container_name: 'memberships-rabbitmq'
expose:
- 5672
- 15672
ports:
- 5672:5672
- 15672:15672
depends_on:
- rabbit_networking
networks:
- rabbit_networking
memcached:
image: memcached:alpine3.14
command: ["-m", "528"]
container_name: 'memberships-memcached'
expose:
- 11211
ports:
- 11211:11211
depends_on:
- memcached_networking
networks:
- memcached_networking
api:
env_file:
- .env.docker
build:
context: .
dockerfile: Docker.API
image: memberships-api:101
container_name: 'memberships-api'
command: "gunicorn --bind 0.0.0.0:8081 --workers 2 --threads 8 --timeout 0 run:app"
restart: always
expose:
- 8081
ports:
- 8081:8081
depends_on:
- rabbit
- memcached
- rabbit_networking
- front_end
- memcached_networking
networks:
- rabbit_networking
- front_end
- memcached_networking
system-admin:
env_file:
- .env.docker
build:
context: ../admin-portal-memberships-api/
dockerfile: ../admin-portal-memberships-api/Dockerfile.ADMIN
image: memberships-admin:102
container_name: 'memberships-admin'
command: "gunicorn --bind 0.0.0.0:8082 --workers 2 --threads 8 --timeout 0 run:app"
restart: always
expose:
- 8082
ports:
- 8082:8082
depends_on:
- rabbit
- api
- memcached
- rabbit_networking
- front_end
- memcached_networking
networks:
- rabbit_networking
- front_end
admin-tasks:
build:
context: ../admin-portal-memberships-api/
dockerfile: ../admin-portal-memberships-api/Dockerfile.WORKER
image: memberships-admin-worker:102
container_name: 'memberships-admin-worker'
command: "python tasks.py"
restart: always
depends_on:
- rabbit
- rabbit_networking
networks:
- rabbit_networking
tasks:
env_file:
- .env.docker
build:
context: .
dockerfile: Docker.TASKS
image: memberships-tasks:101
container_name: 'memberships-tasks'
command: "gunicorn tasks:task_scheduler"
restart: always
depends_on:
- rabbit
- rabbit_networking
networks:
- rabbit_networking
cron:
env_file:
- .env.docker
build:
context: .
dockerfile: Docker.CRON
image: memberships-cron-jobs:101
container_name: 'memberships-cron'
command: "gunicorn cron:cron_scheduler"
restart: always
depends_on:
- rabbit
- rabbit_networking
networks:
- rabbit_networking
networks:
rabbit_networking:
driver: bridge
memcached_networking:
driver: bridge
front_end:
driver: bridge