-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
80 lines (75 loc) · 1.65 KB
/
compose.dev.yml
File metadata and controls
80 lines (75 loc) · 1.65 KB
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
version: "3"
services:
db:
image: postgres
container_name: db
ports:
- 8040:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: raptgen
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./initdb:/docker-entrypoint-initdb.d
frontend:
build:
context: ./frontend
dockerfile: dockerfile
container_name: frontend
tty: true
ports:
- 18042:18042
volumes:
- ./frontend:/app
- /etc/localtime:/etc/localtime
environment:
- WATCHPACK_POLLING=true
command: sh -c "yarn install; yarn run dev --port 18042"
backend:
build:
context: ./backend
dockerfile: cpu.dockerfile
container_name: backend
tty: true
ports:
- 8000:8000
volumes:
- ./backend:/app
environment:
- PYTHONPATH=/app
command: sh -c "uvicorn --reload --host 0.0.0.0 api:app"
redis:
image: redis
container_name: redis
ports:
- 8030:6379
worker:
build:
context: ./backend
dockerfile: cpu.dockerfile
container_name: worker
tty: true
depends_on:
- redis
volumes:
- ./backend:/app
environment:
- PYTHONPATH=/app
- CUDA_LAUNCH_BLOCKING=1
command: sh -c "celery --app=tasks.celery worker --loglevel=info --pool=threads"
flower:
build:
context: ./backend
dockerfile: cpu.dockerfile
container_name: flower
tty: true
depends_on:
- redis
volumes:
- ./backend:/app
environment:
- PYTHONPATH=/app
command: sh -c "celery --app=tasks.celery flower --port=5555"
ports:
- 8010:5555