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