-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
48 lines (44 loc) · 1.05 KB
/
docker-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
42
43
44
45
46
47
48
version: "3.4"
x-logging: &default-logging
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
services:
stac:
container_name: stac-populator-test
image: ghcr.io/crim-ca/stac-app:main
depends_on:
- stac-db
ports:
- "8880:8000"
environment:
- POSTGRES_USER=testuser
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST_READER=stac-db
- POSTGRES_HOST_WRITER=stac-db
- POSTGRES_PORT=5432
- ROUTER_PREFIX=/stac
logging: *default-logging
restart: always
stac-db:
container_name: stac-populator-test-db
image: ghcr.io/stac-utils/pgstac:v0.6.10
environment:
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgis
- PGUSER=testuser
- PGPASSWORD=password
- PGHOST=localhost
- PGDATABASE=postgis
volumes:
- stac-db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
stac-db: