-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
65 lines (58 loc) · 1.15 KB
/
docker-compose.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
---
version: "3.7"
services:
nginx:
image: nginx:stable-alpine
ports:
- "8081:80"
volumes:
- ./contrib/nginx.conf:/etc/nginx/nginx.conf
networks:
- tuber
frontend:
build: ./frontend
image: ghcr.io/magfest/tuber-frontend:latest
networks:
- tuber
backend:
build: ./backend
ports:
- 8080:8080
image: ghcr.io/${REPO_NAME:-magfest/tuber}-backend:latest
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgresql+psycopg://tuber:tuber@postgres/tuber
REDIS_URL: redis://redis:6379/0
VERBOSE: "true"
FLASK_DEBUG: 1
WORKERS: 4
CIRCUITBREAKER_THREADS: 4
ENABLE_CIRCUITBREAKER: true
CIRCUITBREAKER_TIMEOUT: 1
# scale: 1
networks:
- tuber
postgres:
image: postgres:alpine
environment:
- POSTGRES_PASSWORD=tuber
- POSTGRES_USER=tuber
- POSTGRES_DB=tuber
ports:
- "5432"
volumes:
- db-data:/var/lib/postgresql/data
networks:
- tuber
redis:
image: redis:alpine
ports:
- "6379"
networks:
- tuber
networks:
tuber:
volumes:
db-data: