-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.09 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
services:
server:
image: recocos-server
build: .
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
SECRET_KEY: SECRET_KEY
ports:
- "8000:8000"
depends_on:
- db
- broker
volumes:
- "./:/workspace"
- "/workspace/node_modules"
worker:
image: recocos-server
command: ["celery", "-A", "recoco", "worker", "-l", "info", "--concurrency=1"]
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
SECRET_KEY: SECRET_KEY
CELERY_BROKER_URL: redis://broker:6379/0
depends_on:
- db
- broker
frontend:
image: recoco-frontend
build:
context: recoco/frontend
ports:
- "3000:3000"
db:
image: postgres:16
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
broker:
image: redis:7-alpine
ports:
- 6379:6379
volumes:
postgres-data: