version: '3.9' services: postgres: image: postgres:15 container_name: postgres environment: POSTGRES_USER: admin POSTGRES_PASSWORD: pass POSTGRES_DB: crypto ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data pgadmin: image: dpage/pgadmin4 container_name: pgadmin environment: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: admin ports: - "5050:80" depends_on: - postgres volumes: postgres_data: