-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (43 loc) · 1.02 KB
/
docker-compose.dev.yml
File metadata and controls
46 lines (43 loc) · 1.02 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
services:
web:
build: .
command: >
sh -c "uv run python manage.py migrate &&
uv run python manage.py collectstatic --noinput &&
uv run gunicorn simplebank.wsgi:application --reload --bind 0.0.0.0:8000 --workers 2"
volumes:
- ./apps:/app/apps
- ./simplebank:/app/simplebank
- static_volume:/app/staticfiles
environment:
- ENV=dev
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
ports:
- "${APP_PORT}:8000"
env_file:
- .env
depends_on:
- db
networks:
- simplebank-network
restart: unless-stopped
db:
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "5432:5432"
networks:
- simplebank-network
restart: unless-stopped
volumes:
postgres_data:
static_volume:
networks:
simplebank-network:
driver: bridge