-
Notifications
You must be signed in to change notification settings - Fork 1
/
staging.yml
77 lines (68 loc) · 1.75 KB
/
staging.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
version: "3.8"
volumes:
staging_postgres_data: {}
staging_postgres_data_backups: {}
staging_traefik: {}
staging_django_media: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: connect_access_django:staging
volumes:
- staging_django_media:/app/backend/connect_access/media
depends_on:
- postgres
- redis
env_file:
- ./.env_staging
command: /start
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: connect_access_postgres:staging
volumes:
- staging_postgres_data:/var/lib/postgresql/data:Z
- staging_postgres_data_backups:/backups:z
- ./compose/production/postgres/init-scripts:/docker-entrypoint-initdb.d
env_file:
- ./.env_staging
traefik:
build:
context: .
dockerfile: ./compose/production/traefik/Dockerfile
image: connect_access_traefik:staging
depends_on:
- django
labels:
- "traefik.enable=true"
volumes:
- staging_traefik:/etc/traefik/acme
ports:
- "0.0.0.0:${APPLICATION_PORT}:80"
- "0.0.0.0:${FLOWER_PORT}:5555"
redis:
image: redis:5.0
celeryworker:
<<: *django
image: connect_access_celeryworker:staging
command: /start-celeryworker
celerybeat:
<<: *django
image: connect_access_celerybeat:staging
command: /start-celerybeat
flower:
<<: *django
image: connect_access_flower:staging
command: /start-flower
nginx:
build:
context: .
dockerfile: ./compose/production/nginx/Dockerfile
image: connect_access_nginx:staging
depends_on:
- django
volumes:
- staging_django_media:/usr/share/nginx/media:ro