-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (74 loc) · 1.77 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.8'
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: flacjacket
POSTGRES_USER: flacjacket
POSTGRES_PASSWORD: flacjacket
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
backend:
build: ./backend
environment:
FLASK_APP: app
FLASK_ENV: production
DATABASE_URL: postgresql://flacjacket:flacjacket@postgres/flacjacket
CELERY_BROKER_URL: redis://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
PYTHONPATH: /app
volumes:
- ./backend:/app
- backend_uploads:/app/uploads
ports:
- "5001:5000"
depends_on:
- postgres
- redis
celery_worker:
build: ./backend
command: celery -A app.celery worker --loglevel=info
environment:
DATABASE_URL: postgresql://flacjacket:flacjacket@postgres/flacjacket
CELERY_BROKER_URL: redis://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
PYTHONPATH: /app
volumes:
- ./backend:/app
- backend_uploads:/app/uploads
- celery_logs:/var/log/celery
depends_on:
- postgres
- redis
flower:
build: ./backend
command: celery -A app.celery flower --port=5555
environment:
CELERY_BROKER_URL: redis://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
ports:
- "5555:5555"
volumes:
- flower_data:/data
depends_on:
- redis
- celery_worker
frontend:
build: ./frontend
environment:
NEXT_PUBLIC_API_URL: http://localhost:5001
ports:
- "3003:3000"
depends_on:
- backend
volumes:
postgres_data:
backend_uploads:
celery_logs:
flower_data: