-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
59 lines (59 loc) · 1.62 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
version: "3.9"
services:
db:
image: postgis/postgis:16-3.4
shm_size: 16gb
container_name: fwapg-db
command: postgres -c default_statistics_target=100 -c max_connections=100 -c max_locks_per_transaction=64 -c checkpoint_timeout=30min -c maintenance_work_mem=1GB -c effective_cache_size=16GB -c work_mem=500MB -c max_wal_size=10GB -c wal_buffers=16MB -c shared_buffers=8GB
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- ${DB_PORT}:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 1s
retries: 5
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PG_DATABASE=fwapg
loader:
build:
context: .
container_name: fwapg-loader
volumes:
- "./:/home/fwapg"
environment:
- PGHOST=db
- PGPORT=5432
- PGUSER=postgres
- PGPASSWORD=postgres
- DATABASE_URL=postgresql://postgres:postgres@db:5432/fwapg
depends_on:
db:
condition: service_healthy
featureserv:
image: pramsey/pg_featureserv:latest
container_name: fwapg-fs
ports:
- ${FS_PORT}:9000
volumes:
- "./:/home/fwapg"
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/fwapg
depends_on:
db:
condition: service_healthy
tileserv:
image: pramsey/pg_tileserv:latest
container_name: fwapg-ts
ports:
- ${TS_PORT}:7800
volumes:
- "./:/home/fwapg"
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/fwapg
depends_on:
db:
condition: service_healthy