version: "3" services: db: image: postgres:15-alpine restart: unless-stopped ports: - "5432:5432" volumes: - ./data_db:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=postgres pgadmin: image: dpage/pgadmin4 restart: unless-stopped ports: - "8432:80" volumes: - ./data_pgadmin:/var/lib/pgadmin environment: - PGADMIN_DEFAULT_EMAIL=pg@pg.com - PGADMIN_DEFAULT_PASSWORD=postgres # adminer: # image: adminer # restart: always # ports: # - 8432:8080