-
Notifications
You must be signed in to change notification settings - Fork 240
/
docker-compose.production.yml
114 lines (108 loc) · 2.29 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
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
version: "3"
services:
club_app: &app
image: ghcr.io/vas3k/club:${GITHUB_SHA:-latest}
command: make docker-run-production
container_name: club_app
environment:
- MODE=production
- PYTHONUNBUFFERED=1
- DEBUG=false
- APP_HOST=https://vas3k.club
- MEDIA_UPLOAD_URL=https://i.vas3k.club/upload/
- POSTGRES_DB=vas3k_club
- POSTGRES_USER=vas3k
- POSTGRES_PASSWORD=vas3k
- POSTGRES_HOST=postgres
- REDIS_DB=0
- REDIS_HOST=redis
- EMAIL_HOST
- EMAIL_PORT
- DEFAULT_FROM_EMAIL
env_file:
- .env
restart: always
volumes:
- ./frontend/static:/tmp/static
- ./gdpr/downloads:/app/gdpr/downloads
depends_on:
- postgres
- redis
- queue
ports:
- "127.0.0.1:8814:8814"
logging:
driver: "json-file"
options:
max-size: "100M"
queue:
<<: *app
command: make docker-run-queue
container_name: club_queue
depends_on:
- postgres
- redis
ports: []
logging:
driver: "json-file"
options:
max-size: "100M"
bot:
<<: *app
command: make docker-run-bot
container_name: club_bot
depends_on:
- club_app
- postgres
- redis
ports:
- "8816:8816"
logging:
driver: "json-file"
options:
max-size: "100M"
helpdeskbot:
<<: *app
command: make docker-run-helpdeskbot
container_name: club_help_desk_bot
depends_on:
- club_app
- postgres
- redis
ports:
- "8817:8817"
logging:
driver: "json-file"
options:
max-size: "100M"
cron:
<<: *app
command: make docker-run-cron
container_name: club_cron
depends_on:
- club_app
- postgres
- redis
ports: []
logging:
driver: "json-file"
options:
max-size: "100M"
postgres:
image: postgres:12
container_name: club_postgres
restart: always
environment:
POSTGRES_USER: vas3k
POSTGRES_PASSWORD: vas3k
POSTGRES_DB: vas3k_club
volumes:
- /home/vas3k/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