version: '3.7' services: postgres: image: postgres volumes: - /data/postgre:/var/lib/postgresql/data restart: always environment: POSTGRES_DB: 01factory POSTGRES_USER: 01factory POSTGRES_PASSWORD: 01factory ports: - 5432:5432 adminer: image: adminer:latest restart: always ports: - 8080:8080 links: - postgres:db
sudo docker-compose up -d
sudo docker-compose start
sudo docker-compose stop
sudo docker stop postgres adminer
{ "dbconfig": { "client": "pg", "connection": "postgres://01factory:01factory@127.0.0.1:5432/01factory", "pool": { "min": 0, "max": 7 } } }