docker-compose: add PostGIS db
This commit is contained in:
@ -44,19 +44,28 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- ${EMS_PORT}:${EMS_PORT}
|
- ${EMS_PORT}:${EMS_PORT}
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# monitor:
|
postgis_db:
|
||||||
# container_name: monitor
|
container_name: postgis_db
|
||||||
# build:
|
image: postgis/postgis:17-3.4-alpine
|
||||||
# context: ./monitor
|
volumes:
|
||||||
# dockerfile: Dockerfile
|
- ./postgis_db:/var/lib/postgresql/data
|
||||||
# environment:
|
environment:
|
||||||
# - MONITOR_PORT=${MONITOR_PORT}
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
# ports:
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
# - ${MONITOR_PORT}:${MONITOR_PORT}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
# volumes:
|
ports:
|
||||||
# - ./monitor/data:/app/data
|
- ${POSTGRES_PORT}:${POSTGRES_PORT}
|
||||||
# restart: always
|
expose:
|
||||||
|
- ${POSTGRES_PORT}
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 10s
|
||||||
|
restart: always
|
||||||
|
|
||||||
ems_db:
|
ems_db:
|
||||||
container_name: ems_db
|
container_name: ems_db
|
||||||
|
Reference in New Issue
Block a user