-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
41 lines (40 loc) · 904 Bytes
/
compose.yml
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
services:
app:
build: .
ports:
- "8000:8000"
depends_on:
- database
networks:
- postgres-network
develop:
watch:
- action: sync
path: .
target: .
ignore:
- .venv/
- action: rebuild
path: uv.lock
database:
image: 'postgres:17'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
ports:
- 15432:5432
env_file:
- .env
networks:
- postgres-network
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD?Variable not set}
- POSTGRES_USER=${POSTGRES_USER?Variable not set}
- POSTGRES_DB=${POSTGRES_DB?Variable not set}
networks:
postgres-network:
driver: bridge