-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathproduction.yml
46 lines (40 loc) Β· 1003 Bytes
/
production.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
version: "3.9"
services:
api: &api
build:
context: .
dockerfile: ./docker/production/django/Dockerfile
command: /start
image: authors-haven-api
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
depends_on:
- redis
networks:
- reverseproxy-nw
redis:
image: redis:6-alpine
networks:
- reverseproxy-nw
rabbitmq:
image: rabbitmq:3-management
env_file:
- ./.envs/.production/.django
networks:
- reverseproxy-nw
celery_worker:
<<: *api
image: authors-haven-celeryworker
command: /start-celeryworker
networks:
- reverseproxy-nw
flower:
<<: *api
image: authors-haven-flower
command: /start-flower
networks:
- reverseproxy-nw
networks:
reverseproxy-nw:
external: true