docker-compose.yml
version: '3.1'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: 123456
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- 54321:8080