version: '3.7' services: postgres: image: postgres:12 container_name: postgres restart: unless-stopped env_file: - ../.env ports: - 5432:5432 volumes: - postgres:/var/lib/postgresql/data pgadmin: image: dpage/pgadmin4 container_name: pgadmin restart: unless-stopped env_file: - ../.env ports: - "${PGADMIN_PORT:-5050}:80" environment: PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org} PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin} volumes: - pgadmin-data:/var/lib/pgadmin redis: image: 'redis:alpine' container_name: redis restart: unless-stopped ports: - 6379:6379 volumes: postgres: pgadmin-data: