forked from vas3k/vas3k.club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
59 lines (55 loc) · 1.27 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
version: "3.7"
services:
club_app: &app
build:
dockerfile: production.dockerfile
context: .
command: make docker-run-production
container_name: club_app
environment:
- 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
restart: always
volumes:
- ./frontend/static:/app/frontend/static
- ./gdpr/downloads:/app/gdpr/downloads
depends_on:
- postgres
- redis
- queue
ports:
- "8814:8814"
queue:
<<: *app
command: make docker-run-queue
container_name: club_queue
depends_on:
- postgres
- redis
ports: []
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:
- "54333:5432"
redis:
image: redis:alpine
container_name: club_redis
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=yes