services: db: image: postgres:16-alpine restart: unless-stopped container_name: gege-jdr-backend-db environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USER} POSTGRES_DB: ${DB_NAME} ports: - 127.0.0.1:5432:5432 volumes: - gege_jdr_backend_db_data:/var/lib/postgresql/data # If you run GegeJdrBackend in production, I recommend you to # not run PgAdmin with it. pgadmin: image: dpage/pgadmin4:8 restart: unless-stopped container_name: gege-jdr-backend-pgadmin environment: PGADMIN_DEFAULT_EMAIL: admin@example.com PGADMIN_DEFAULT_PASSWORD: password # Disables sending emails. Disable it if you decide to run # PgAdmin in production PGADMIN_DISABLE_POSTFIX: true ports: - 127.0.0.1:8080:80 volumes: - gege_jdr_backend_pgadmin_data:/var/lib/pgadmin depends_on: - db volumes: gege_jdr_backend_db_data: gege_jdr_backend_pgadmin_data: