2021-11-07 20:57:49 +02:00
|
|
|
---
|
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
app:
|
2026-02-17 11:03:48 -05:00
|
|
|
image: cryptpad/cryptpad:version-2026.2.0
|
2026-02-28 16:52:32 -05:00
|
|
|
command: ["npm", "start"]
|
2021-11-07 20:57:49 +02:00
|
|
|
networks:
|
2026-01-12 15:45:15 -05:00
|
|
|
- backend
|
2021-11-07 20:57:49 +02:00
|
|
|
environment:
|
2026-01-13 12:56:12 -05:00
|
|
|
- CRYPTPAD_ADMIN_KEYS
|
2021-11-07 21:34:14 +02:00
|
|
|
- "CPAD_MAIN_DOMAIN=${DOMAIN}"
|
2025-12-15 10:45:40 -08:00
|
|
|
- "CPAD_SANDBOX_DOMAIN=${SANDBOX_DOMAIN}"
|
2026-01-12 16:19:24 -05:00
|
|
|
# Traefik can't use HTTP2 to communicate with cryptpad_websocket
|
2021-11-07 20:57:49 +02:00
|
|
|
# A workaroung is disabling HTTP2 in Nginx
|
2022-07-12 17:11:14 +02:00
|
|
|
- "CPAD_HTTP2_DISABLE=true"
|
2026-01-12 15:45:15 -05:00
|
|
|
- "CPAD_TRUST_PROXY=1"
|
|
|
|
|
- "CPAD_CONF=/cryptpad/config/config.js"
|
2026-04-20 17:20:24 +00:00
|
|
|
- "RESTRICT_GUEST_ACCESS=${RESTRICT_GUEST_ACCESS:-false}"
|
2021-11-07 20:57:49 +02:00
|
|
|
volumes:
|
|
|
|
|
- cryptpad_blob:/cryptpad/blob
|
|
|
|
|
- cryptpad_block:/cryptpad/block
|
|
|
|
|
- cryptpad_customize:/cryptpad/customize
|
|
|
|
|
- cryptpad_data:/cryptpad/data
|
|
|
|
|
- cryptpad_files:/cryptpad/datastore
|
|
|
|
|
- cryptpad_config:/cryptpad/config/
|
2022-07-12 17:11:14 +02:00
|
|
|
configs:
|
|
|
|
|
- source: config_js
|
|
|
|
|
target: /cryptpad/config/config.js
|
2026-04-20 17:30:22 +00:00
|
|
|
- source: app_config_js
|
2026-04-20 17:20:24 +00:00
|
|
|
target: /cryptpad/customize/application_config.js
|
2021-11-07 20:57:49 +02:00
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
labels:
|
2026-01-12 15:45:15 -05:00
|
|
|
- "traefik.enable=false"
|
|
|
|
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
2026-06-02 03:52:26 +00:00
|
|
|
- "coop-cloud.${STACK_NAME}.version=0.5.5+v2026.2.0"
|
2026-02-17 10:32:54 -05:00
|
|
|
- "backupbot.backup=true"
|
2026-02-17 16:19:20 +00:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 10
|
|
|
|
|
start_period: 1m
|
2021-11-07 20:57:49 +02:00
|
|
|
|
2026-01-12 15:45:15 -05:00
|
|
|
web:
|
2026-06-02 03:52:26 +00:00
|
|
|
image: nginx:1.31
|
2026-01-12 15:45:15 -05:00
|
|
|
configs:
|
|
|
|
|
- source: nginx_conf
|
|
|
|
|
target: /etc/nginx/conf.d/default.conf
|
|
|
|
|
networks:
|
|
|
|
|
proxy:
|
|
|
|
|
backend:
|
|
|
|
|
depends_on:
|
|
|
|
|
- app
|
|
|
|
|
environment:
|
|
|
|
|
- STACK_NAME
|
|
|
|
|
deploy:
|
|
|
|
|
labels:
|
|
|
|
|
- "traefik.enable=true"
|
|
|
|
|
- "traefik.docker.network=proxy"
|
|
|
|
|
- "traefik.http.routers.${STACK_NAME}.tls=true"
|
|
|
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8083"
|
2026-01-12 16:17:42 -05:00
|
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`, `${SANDBOX_DOMAIN}` ${EXTRA_DOMAINS})"
|
2026-01-12 15:45:15 -05:00
|
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
|
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
|
|
|
|
2021-11-07 20:57:49 +02:00
|
|
|
networks:
|
|
|
|
|
proxy:
|
|
|
|
|
external: true
|
2026-01-12 15:45:15 -05:00
|
|
|
backend:
|
2021-11-07 20:57:49 +02:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
cryptpad_blob:
|
|
|
|
|
cryptpad_block:
|
|
|
|
|
cryptpad_customize:
|
|
|
|
|
cryptpad_data:
|
|
|
|
|
cryptpad_files:
|
|
|
|
|
cryptpad_config:
|
2026-03-01 02:48:46 +00:00
|
|
|
|
2022-07-12 17:11:14 +02:00
|
|
|
configs:
|
|
|
|
|
config_js:
|
|
|
|
|
name: ${STACK_NAME}_config_${CONFIG_VERSION}
|
|
|
|
|
file: config.js.tmpl
|
|
|
|
|
template_driver: golang
|
2026-01-12 15:45:15 -05:00
|
|
|
nginx_conf:
|
|
|
|
|
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
|
|
|
|
|
file: nginx.conf.tmpl
|
|
|
|
|
template_driver: golang
|
2026-04-20 17:30:22 +00:00
|
|
|
app_config_js:
|
|
|
|
|
name: ${STACK_NAME}_app_config_js_${APP_CONFIG_JS_VERSION}
|
2026-04-20 17:20:24 +00:00
|
|
|
file: application_config.js.tmpl
|
|
|
|
|
template_driver: golang
|