-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 996 Bytes
/
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
version: "3.7"
services:
db:
image: postgis/postgis:17-3.5
restart: always
env_file:
- docker/.env
volumes:
- pg_data:/var/lib/postgresql/data
- ./docker/setup.sh:/docker-entrypoint-initdb.d/99_setup.sh
- ./docker/countries.dump:/tmp/countries.dump
- ./installer/setup.sql:/tmp/setup.sql
- ./installer/init.sql:/tmp/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "postgres", "-d", "$${APP_DB}"]
interval: 10s
timeout: 50s
retries: 10
web:
image: acugis/pg_tile_app_web:27012025
env_file:
- docker/.env
build:
context: .
dockerfile: docker/web.Dockerfile
volumes:
- pgt_dir:/var/www/pgt
- tile_config:/opt/pg_tileserv/config
- feat_config:/opt/pg_featureserv/config
- ./docker/const.php:/var/www/html/admin/incl/const.php
ports:
- "8000:80"
depends_on:
- db
volumes:
pgt_dir:
tile_config:
feat_config:
pg_data: