-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
51 lines (45 loc) · 1.12 KB
/
docker-compose.dev.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
version: "3.8"
services:
backend:
container_name: backend_dev
user: "${UID}:${GID}"
ports:
- "${API_PORT}:8000"
volumes:
- "./backend:/app"
backend_debug:
container_name: backend_debug
build:
context: .
target: backend_debug
command: python -m debugpy --wait-for-client --listen 0.0.0.0:5678 -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
user: "${UID}:${GID}"
ports:
- "8764:8000"
- "5678:5678"
volumes:
- ./backend:/app
environment:
- DATABASE_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- BROKER_URL=pyamqp://${RABBITMQ_USER}:${RABBITMQ_PASSWORD}@rabbitmq3:5672
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- db
- rabbitmq3
- redis
networks:
- postgres
- rabbitmq
frontend_dev:
container_name: frontend_dev
build:
context: .
target: frontend_dev
volumes:
- ./frontend/src:/app/src
- /app/node_modules
command: yarn dev
ports:
- 3001:3001
depends_on:
- backend