-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
53 lines (50 loc) · 1.3 KB
/
docker-compose.dev.yaml
File metadata and controls
53 lines (50 loc) · 1.3 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
51
52
53
services:
db:
image: postgis/postgis:17-3.5
platform: linux/amd64
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
- POSTGRES_DB=zeno-data
ports:
- 5433:5432 # Local PostgreSQL running on port 5432, mapped to port 5433
volumes:
- ./database_data:/var/lib/postgresql/data
test-db:
image: postgis/postgis:17-3.5
platform: linux/amd64
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
- POSTGRES_DB=zeno-data_test
ports:
- 5434:5432 # Local PostgreSQL running on port 5432, mapped to port 5434
volumes:
- ./database_data_test:/var/lib/postgresql/data
migrate:
build:
context: ./db
depends_on:
db:
condition: service_healthy
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
- APP_DB=zeno-data
volumes:
- ./db:/app/db