diff --git a/__swarm/ollama/ollama-swarm.yml b/__swarm/ollama/ollama-swarm.yml index cadf7bf..b14e228 100644 --- a/__swarm/ollama/ollama-swarm.yml +++ b/__swarm/ollama/ollama-swarm.yml @@ -21,4 +21,4 @@ services: constraints: - node.role == manager volumes: - ollama_models: null + ollama_models: diff --git a/__swarm/onlyoffice/onlyoffice-swarm.yml b/__swarm/onlyoffice/onlyoffice-swarm.yml new file mode 100644 index 0000000..3b39f0f --- /dev/null +++ b/__swarm/onlyoffice/onlyoffice-swarm.yml @@ -0,0 +1,98 @@ +services: + onlyoffice-documentserver: + build: + context: . + image: onlyoffice/documentserver + environment: + DB_TYPE: postgres + DB_HOST: onlyoffice-postgresql + DB_PORT: '5432' + DB_NAME: onlyoffice + DB_USER: onlyoffice + AMQP_URI: amqp://guest:guest@onlyoffice-rabbitmq + ports: + - target: 80 + published: 8280 + protocol: tcp + mode: ingress + - target: 443 + published: 22443 + protocol: tcp + mode: ingress + healthcheck: + test: + - CMD + - curl + - -f + - http://localhost:8000/info/info.json + interval: 30s + retries: 5 + start_period: 60s + timeout: 10s + stdin_open: true + stop_grace_period: 60s + volumes: + - /var/www/onlyoffice/Data + - /var/log/onlyoffice + - /var/lib/onlyoffice/documentserver/App_Data/cache/files + - /var/www/onlyoffice/documentserver-example/public/files + - /usr/share/fonts + deploy: + labels: + com.centurylinklabs.watchtower.enable: 'true' + wud.watch: 'true' + wud.watch.digest: 'true' + homepage.container: onlyoffice-documentserver + homepage.description: OnlyOffice Document Server + homepage.group: Infrastructure + homepage.href: http://active.home.lan:8280/example + homepage.icon: onlyoffice.png + homepage.name: OnlyOffice Document Server + homepage.server: my-docker-swarm + replicas: 1 + placement: + constraints: + - node.role == manager + onlyoffice-rabbitmq: + image: rabbitmq:3 + expose: + - '5672' + healthcheck: + test: + - CMD + - rabbitmq-diagnostics + - status + interval: 10s + retries: 3 + start_period: 10s + timeout: 10s + deploy: + replicas: 1 + placement: + constraints: + - node.role == manager + onlyoffice-postgresql: + image: postgres:15 + environment: + POSTGRES_DB: onlyoffice + POSTGRES_USER: onlyoffice + POSTGRES_HOST_AUTH_METHOD: trust + expose: + - '5432' + volumes: + - postgresql_data:/var/lib/postgresql + healthcheck: + test: + - CMD-SHELL + - pg_isready -U onlyoffice + interval: 10s + retries: 3 + start_period: 10s + timeout: 10s + deploy: + replicas: 1 + placement: + constraints: + - node.role == manager +volumes: + postgresql_data: null