-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (41 loc) · 959 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
46 lines (41 loc) · 959 Bytes
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
services:
backend:
build: ./backend
command: uvicorn src.app:app --host 0.0.0.0 --reload --port 8000
container_name: backend
volumes:
- ./backend:/backend
env_file: ".env.dev"
ports:
- "8000:8000"
depends_on:
- backend-db
backend-worker:
build: ./backend
command: [ 'celery', '-A', 'src.tasks.celery_app', 'worker', '-l', 'info' ]
container_name: backend-worker
env_file: ".env.dev"
volumes:
- ./backend:/backend
depends_on:
- backend-db
backend-db:
image: postgres:latest
container_name: backend-db
ports:
- "5433:5433"
env_file: ".env.dev"
volumes:
- backend-db-volume:/var/lib/postgresql
backend-redis:
image: redis:latest
container_name: backend-redis
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend
ports:
- "3000:3000"
volumes:
backend-db-volume: