version: "3.3" services: db: image: postgres container_name: postgres #networks: # - postgres environment: - POSTGRES_DB=clientsdb - POSTGRES_PASSWORD=foo - POSTGRES_USER=www ports: - 5432:5432 volumes: - ${PWD}/sqlinit:/docker-entrypoint-initdb.d - mydb:/var/lib/postgresql/data webapp: build: webapp/ image: webapp-image container_name: webapp ports: - 80:80 volumes: - ${PWD}/webapp:/var/www/html phppgadmin: image: bitnami/phppgadmin container_name: phppgadmin ports: - 81:8080 environment: - DATABASE_HOST=postgres volumes: mydb: