services: pgdb: image: postgres:latest restart: "no" ports: - "5432:5432" environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres volumes: - "db:/var/lib/postgresql/data" networks: - webnet volumes: db: driver: local networks: webnet: