-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
44 lines (42 loc) · 908 Bytes
/
compose.yaml
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
services:
backend:
build: skni_site_backend
ports:
- "8000:8000"
networks:
- skni_site
develop:
watch:
- action: sync
path: ./skni_site_backend
target: /app
- action: rebuild
path: ./skni_site_backend/poetry.lock
- action: rebuild
path: ./skni_site_backend/pyproject.toml
depends_on:
db:
condition: service_healthy
db:
image: postgres:15.7
ports:
- 5432:5432
volumes:
- skni_site_db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: skni_site
healthcheck:
test: pg_isready -U postgres
interval: 60s
retries: 3
start_period: 10s
timeout: 10s
networks:
- skni_site
volumes:
skni_site_db_data:
networks:
skni_site:
driver: bridge