version: '3' services: server: build: context: . dockerfile: Dockerfile ports: - "3000:3000" environment: NODE_ENV: production PG_HOST: db PG_PORT: 5432 PG_DATABASE: appdb PG_USER: appuser PG_PASSWORD: password depends_on: - db db: image: postgres container_name: postgresdb ports: - "5432:5432" environment: POSTGRES_DB: appdb POSTGRES_USER: appuser POSTGRES_PASSWORD: password volumes: - dades:/var/lib/postgresql/data - ./sql:/docker-entrypoint-initdb.d pgadmin: image: dpage/pgadmin4 container_name: pgadmin4_container restart: always ports: - "5050:80" environment: PGADMIN_DEFAULT_EMAIL: a@a.com PGADMIN_DEFAULT_PASSWORD: admin volumes: - pgadmin-data:/var/lib/pgadmin volumes: dades: