-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
45 lines (42 loc) · 986 Bytes
/
docker-compose.dev.yaml
File metadata and controls
45 lines (42 loc) · 986 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
services:
web:
image: ghcr.io/astral-sh/uv:python3.11-bookworm
container_name: prediction_bot_app
working_dir: /app
command: >
sh -c "
uv sync --frozen &&
.venv/bin/uvicorn src.app.core.config_run:web_app --host 0.0.0.0 --port 8000
"
ports:
- "8000:8000"
volumes:
- .:/app
- static_volume:/app/staticfiles
depends_on:
- db
db:
image: postgres:15.2
container_name: postgres_bot
ports:
- "5433:5432"
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
nginx:
image: nginx:latest
container_name: nginx
ports:
- "1336:80"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/staticfiles
depends_on:
- web
volumes:
postgres-data:
static_volume: