-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.production.yml
75 lines (70 loc) · 1.63 KB
/
docker-compose.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
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
version: "3.7"
services:
club_app: &app
build:
dockerfile: Dockerfile
context: .
command: make docker-run-production
container_name: club_app
environment:
- MODE=production
- PYTHONUNBUFFERED=1
- DEBUG=false
- APP_HOST=https://rationalanswer.club
- MEDIA_HOST=https://i.rationalanswer.club
- MEDIA_UPLOAD_URL=https://i.rationalanswer.club/upload/multipart/
- POSTGRES_DB=rationalanswer
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=postgres
- REDIS_DB=0
- REDIS_HOST=redis
- EMAIL_HOST
- EMAIL_PORT
- DEFAULT_FROM_EMAIL
restart: always
volumes:
- ./frontend/static:/app/frontend/static
- ./gdpr/downloads:/app/gdpr/downloads
depends_on:
- postgres
- redis
- queue
ports:
- "127.0.0.1:8814:8814"
queue:
<<: *app
command: make docker-run-queue
container_name: club_queue
depends_on:
- postgres
- redis
ports: []
bot:
<<: *app
command: make docker-run-bot
container_name: club_bot
depends_on:
- club_app
- postgres
- redis
ports:
- "8816:8816"
postgres:
image: postgres:12
container_name: club_postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: rationalanswer
volumes:
- /var/www/pgdata:/var/lib/postgresql/data:rw
ports:
- "127.0.0.1:54333:5432"
redis:
image: redis:alpine
container_name: club_redis
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=yes