-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (47 loc) · 1.01 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (47 loc) · 1.01 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
47
48
49
50
services:
app:
container_name: app
environment:
DB_HOST: postgres
env_file:
- .env.dev
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "16000:8000"
depends_on:
postgres:
condition: service_healthy
develop:
watch:
- action: rebuild
path: scripts/ poetry.lock pyproject.toml poetry.toml .env
- action: sync
path: ./src
target: /src
volumes:
- ./alembic/:/src/alembic/
postgres:
hostname: postgres
image: postgres:14.1
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pg_data:/var/lib/postgresql/data
- pg_data_backups:/backups
ports:
- "65432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "${DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
restart: no
volumes:
pg_data:
driver: "local"
pg_data_backups:
driver: "local"