version: '3' services: nc_db: image: mariadb restart: always command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW environment: - MYSQL_ROOT_PASSWORD=nextcloud - MYSQL_PASSWORD=nextcloud - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud volumes: - ./database:/var/lib/mysql networks: backend: app: image: nextcloud restart: always environment: - MYSQL_PASSWORD=nextcloud - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud - MYSQL_HOST=nc_db - OVERWRITEPROTOCOL=https - OVERWRITEHOST=cloud.cttue.de - PHP_UPLOAD_LIMIT=50M - VIRTUAL_HOST=cloud.cttue.de - VIRTUAL_PORT=80 - LETSENCRYPT_HOST=cloud.cttue.de volumes: - ./nextcloud-data:/var/www/html:z networks: cttue_web_services: backend: depends_on: - nc_db networks: cttue_web_services: external: true # Internal network for communication with MySQL backend: