-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
34 lines (30 loc) · 850 Bytes
/
docker-compose.dev.yml
File metadata and controls
34 lines (30 loc) · 850 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
# docker-compose.dev.yml — Development overrides
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# Adds: hot-reload, source mounting, debug logging, exposed DB ports.
services:
api:
build:
context: .
target: base # skip production optimizations
command: uvicorn api.main:app --host 0.0.0.0 --port 8080 --reload --log-level debug
environment:
ENVIRONMENT: development
LOG_LEVEL: debug
volumes:
- .:/app:cached
- /app/.venv # don't mount venv from host
bot:
command: python -m bot.main
environment:
ENVIRONMENT: development
LOG_LEVEL: debug
volumes:
- .:/app:cached
- /app/.venv
db:
ports:
- "5432:5432" # expose for local tools (pgcli, DBeaver)
redis:
ports:
- "6379:6379" # expose for redis-cli