version: "3" services: app: build: context: docker/php volumes: - "./:/var/www/html" db: image: postgres restart: unless-stopped environment: - "POSTGRES_DB=${DB_NAME}" - "POSTGRES_USER=${DB_USER}" - "POSTGRES_PASSWORD=${DB_PASSWORD}" volumes: - "db:/var/lib/postgresql/data" web: build: context: docker/nginx ports: - "8080:80" volumes: - "./:/var/www/html" adminer: image: adminer ports: - "8081:8080" environment: - "ADMINER_DEFAULT_SERVER=db" volumes: db: