--- # docker-compose file for owncloud server # DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose-prod.yml owncloud # DOCKER_HOST=dkhost:2376 docker stack ps owncloud version: '3.4' volumes: cache: services: xaicloud: image: "dkregistry.xai-corp.net:5000/xaicorp/nextcloud:latest" volumes: - /opt/shared/nextcloud/data:/var/www/html/data - /opt/shared/nextcloud/config:/var/www/html/config - /opt/shared/nextcloud/apps:/var/www/html/custom_apps deploy: mode: replicated replicas: 1 restart_policy: condition: any delay: "1s" max_attempts: 5 update_config: parallelism: 1 delay: 2s order: start-first resources: limits: memory: 512M networks: - prod # logging: # driver: fluentd # options: # fluentd-address: "logs.xai-corp.net:24224" # fluentd-async-connect: 'true' # tag: nextcloud web: image: "dkregistry.xai-corp.net:5000/xaicorp/nextcloud-web:latest" ports: - 8083:80 volumes: - cache:/data/nginx/cache/nextcloud - /opt/shared/nextcloud/data:/var/www/html/data - /opt/shared/nextcloud/config:/var/www/html/config - /opt/shared/nextcloud/apps:/var/www/html/custom_apps deploy: mode: replicated replicas: 1 restart_policy: condition: any delay: "30s" max_attempts: 5 update_config: parallelism: 1 delay: 2s order: start-first resources: limits: # cpus: '1' memory: 512M # healthcheck: # test: curl -f http://localhost ||exit 1 # interval: 1m30s # timeout: 1s # retries: 2 networks: - ingress - prod # collabora: # image: collabora/code # ports: # - 9980:9980 # environment: # domain: office\\.xai-corp\\.net # username: admin # password: ah8031qhnbc # server_name: office.xai-corp.net # # deploy: # mode: replicated # replicas: 0 # restart_policy: # condition: any # delay: "1s" # max_attempts: 5 # update_config: # parallelism: 1 # delay: 2s # order: start-first # resources: # limits: # cpus: '1' # memory: 512M networks: default: external: name: ingress ingress: external: name: ingress prod: external: name: prod