version: '3' services: app: build: ./nextcloud_fpm_full restart: always volumes: - ./nextcloud/html:/var/www/html - /mnt/data_nextcloud/data:/var/www/html/data environment: - POSTGRES_DB=nextcloud - POSTGRES_USER=nextcloud - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" - "POSTGRES_HOST=10.128.0.95:5432" - "NEXTCLOUD_URL=cloud.auro.re" - "NEXTCLOUD_TRUSTED_DOMAINS=cloud.auro.re nextcloud.auro.re" - "TRUSTED_PROXIES=45.66.111.206 2a09:6840:215::1:1 127.0.0.0/8 ::1/128" - "OVERWRITEHOST=cloud.auro.re" - "NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}" - "NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}" web: build: ./web restart: always volumes: - ./nextcloud/html:/var/www/html:ro environment: - NGINX_HOST=cloud.auro.re - NGINX_PORT=80 ports: - "8080:80" depends_on: - app