S
Size: a a a
S
D
S
D
S
<Ч
<Ч
Ж
ch
DZ
i
i
i
DZ
i
i
A
version: '2.1'
services:
db:
image: postgres:9.6-alpine
healthcheck:
test: nc localhost 5532 || exit 1
container_name: postgres
restart: always
ports:
- '127.0.0.1:5532:5432'
environment:
POSTGRES_USER: ${POSTGRESQL_USER}
POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD}
POSTGRES_DB: ${POSTGRESQL_DATABASE}
volumes:
- "/opt/dump/postgres:/docker-entrypoint-initdb.d"
- "pg_data:/var/lib/postgresql/data"
volumes:
pg_data:
driver: local
test: netstat -an | grep :5532 > /dev/null; if [ 0 != $? ]; then exit 1; fi;
ERROR: Invalid interpolation format for "healthcheck" option in service "db": "netstat -an | grep :5532 > /dev/null && if [ 0 != $? ]; then exit 1; fi;"
D
AD
D