-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.32 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
services:
pgstac:
image: pgstac
env_file:
- .env
build:
context: .
network: host
dockerfile: docker/pgstac/Dockerfile
target: pgstac
platform: linux/amd64
environment:
- POSTGRES_USER=${POSTGRES_USER:-username}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
- POSTGRES_DB=${POSTGRES_DB:-postgis}
- PGHOST=/var/run/postgresql
- PGPORT=5432
- PGUSER=${PGUSER:-username}
- PGPASSWORD=${PGPASSWORD:-password}
- PGDATABASE=${PGDATABASE:-postgis}
ports:
- "${PGPORT:-5439}:5432"
volumes:
- pgstac-pgdata:/var/lib/postgresql/data
command: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -h /var/run/postgresql -p 5432 -U ${PGUSER:-username} -d ${PGDATABASE:-postgis}"]
interval: 5s
timeout: 5s
retries: 12
start_period: 5s
pypgstac:
image: pypgstac
env_file:
- .env
build:
context: .
network: host
dockerfile: docker/pypgstac/Dockerfile
target: pypgstac
platform: linux/amd64
environment:
- PGHOST=pgstac
- PGPORT=5432
- PGUSER=${PGUSER:-username}
- PGPASSWORD=${PGPASSWORD:-password}
- PGDATABASE=${PGDATABASE:-postgis}
depends_on:
pgstac:
condition: service_healthy
volumes:
pgstac-pgdata: