version: '3.6' services: postgres: container_name: postgres_container image: postgis/postgis environment: POSTGRES_DB: ${POSTGRES_DB:-app} POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-SuperSecret} volumes: - pgdata:/var/lib/postgresql/data ports: - '5432:5432' networks: - postgres restart: unless-stopped adminer: image: adminer restart: always ports: - 8090:8080 networks: - postgres networks: postgres: driver: bridge volumes: pgdata: