This repository was archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
78 lines (72 loc) · 1.9 KB
/
docker-compose.prod.yml
File metadata and controls
78 lines (72 loc) · 1.9 KB
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
version: "3.9"
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- db-data:/var/lib/postgresql/data/
ports:
- "5432:5432"
cms:
image: specr.azurecr.io/specr:deployment
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- TEST_DB_NAME=test_cms
- DEBUG=False
- SECRET_KEY=khgfskhfuiwhwfkhfdkh
- DJANGO_SETTINGS_MODULE=cms.production
- CELERY_BROKER=amqp://guest:guest@celery-broker//
volumes:
- .:/app
- cms-media:/app/cms/media
ports:
- "8000:8000"
depends_on:
- db
celery-broker:
image: rabbitmq:3.8.5-alpine
celery-worker:
image: specr.azurecr.io/specr:deployment
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DEBUG=False
- CACHE_DURATION=30
- HTTPCACHE_ENABLED=True
- HTTPCACHE_EXPIRATION_SECS=604800
- DJANGO_SETTINGS_MODULE=cms.production
- CELERY_BROKER=amqp://guest:guest@celery-broker//
restart: on-failure
depends_on:
- celery-broker
- db
volumes:
- .:/app
- cms-media:/app/cms/media
command: ["celery", "-A", "cms", "worker", "-l", "DEBUG", "--concurrency", "1", "--events"]
celery-beat:
image: specr.azurecr.io/specr:deployment
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DEBUG=False
- DJANGO_SETTINGS_MODULE=cms.production
- CELERY_BROKER=amqp://guest:guest@celery-broker//
restart: on-failure
depends_on:
- celery-broker
command: ["celery", "-A", "cms", "beat", "-l", "DEBUG"]
volumes:
db-data:
cms-media:
redis-data: