version: '3.5' services: db: build: dbDocker ports: - "5432:5432" volumes: - postgres:/var/lib/postgresql/data environment: - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB} volumes: postgres: