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
| ---
version: '3.6'
services:
postgresql:
image: postgres:11.3
container_name: postgres
volumes:
# Uncomment below to maintain the peristant data
# - platops-data:/var/lib/postgresql/data/
# Uncomment bellow to intialize the container with data by creating the respective file
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_USER=postgress
- POSTGRES_PASSWORD=postgress
ports: ['5432:5432']
networks: ['stack']
healthcheck:
test: curl -s https://localhost:5432 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
platops-data:
networks:
stack:
|