-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 879 Bytes
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
volumes:
geo-db-data:
services:
db:
image: kartoza/postgis:${POSTGRES_MAJOR_VERSION}-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_RELEASE}
container_name: db
hostname: db
volumes:
- ${PWD}/geo-db-data:/var/lib/postgresql
ports:
- ${POSTGRES_PORT}:5432
environment:
- RUN_AS_ROOT=${RUN_AS_ROOT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASS=${POSTGRES_PASS}
- POSTGRES_UID=${POSTGRES_UID}
- POSTGRES_GID=${POSTGRES_GID}
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,postgis_raster
- ALLOW_IP_RANGE=all
- FORCE_SSL=FALSE
logging:
options:
max-size: "120m"
max-file: "8"
restart: on-failure
healthcheck:
test: "PGPASSWORD=${POSTGRES_PASS} pg_isready -h 127.0.0.1 -U ${POSTGRES_USER} -d ${POSTGRES_DB}"