OpenTileServer/Docker/docker-compose.yml

31 lines
537 B
YAML
Raw Normal View History

2024-01-27 19:30:28 +00:00
version: '3'
services:
pg:
image: acugis/pg:latest
env_file:
- .env
volumes:
- ./vol/pg:/var/lib/postgresql/data
restart: always
hostname: pg
ports:
- 5432:5432
healthcheck:
test: pg_isready -h pg -U ${POSTGRES_USER}
interval: 60s
retries: 2
timeout: 10s
tile:
env_file:
- .env
image: acugis/opentileserver:latest
volumes:
- ./vol/tiles:/var/cache/renderd/tiles
ports:
- 80:80
depends_on:
- "pg"
privileged: true