-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
63 lines (61 loc) · 1.46 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '2.3'
services:
franklin:
container_name: franklin-app
build:
context: .
dockerfile: application/Dockerfile.dev
environment:
- PGHOST=pgstac
- PGDATABASE=postgis
- PGUSER=franklin
- PGPASSWORD=franklin
- API_STAC_HIERARCHY=data-files/hierarchy_example.json
ports:
- "9090:9090"
volumes:
- ./:/opt/src/
command: sbt "project application" "run serve"
pgstac:
container_name: pgstac
image: ghcr.io/stac-utils/pgstac:v0.6.3
environment:
- PGUSER=franklin
- PGPASSWORD=franklin
- PGHOST=pgstac
- PGDATABASE=postgis
- POSTGRES_USER=franklin
- POSTGRES_PASSWORD=franklin
- POSTGRES_DB=postgis
ports:
- "5432:5432"
volumes:
- franklin-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "franklin"]
interval: 3s
timeout: 3s
retries: 3
start_period: 5s
command: postgres -N 500
pypgstac:
container_name: python-scripts
build:
context: .
dockerfile: pypgstac/Dockerfile
environment:
- PGHOST=pgstac
- PGPORT=5432
- PGDATABASE=postgis
- PGUSER=franklin
- PGPASSWORD=franklin
volumes:
- ./pypgstac/bin:/opt/src/bin
- ./scripts:/opt/src/scripts
- ./testdata:/opt/src/testdata
- ./data-files:/opt/src/data-files
volumes:
franklin-pgdata:
networks:
default:
name: franklin-dev-network