version: '2' volumes: nextcloud: db: services: db: image: postgres:15-alpine restart: always volumes: - db:/var/lib/postgresql/data env_file: - .env app: image: nextcloud expose: - 80 links: - db volumes: - nextcloud:/var/www/html hostname: cloud.dmeiburg.de restart: always environment: VIRTUAL_HOST: cloud.dmeiburg.de LETSENCRYPT_HOST: cloud.dmeiburg.de OVERWRITEPROTOCOL: https POSTGRES_HOST: db env_file: - .env networks: default: name: nginx-proxy external: true