-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 680 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 680 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
services:
application:
build:
context: .
dockerfile: ./Dockerfile
restart: always
volumes:
- .:/code
- /code/.venv
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
environment:
- SERVICE_DEBUG=true
- SERVICE_ENVIRONMENT=ci
- DB_DSN=postgresql+asyncpg://postgres:password@db/postgres
command:
["uv", "run", "python", "-m", "app"]
db:
image: postgres:14
restart: always
environment:
- POSTGRES_PASSWORD=password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 1s
timeout: 5s
retries: 15