53 lines
2.0 KiB
YAML
53 lines
2.0 KiB
YAML
version: '3.8'
|
|
services:
|
|
docmost:
|
|
image: docker.io/docmost/docmost:latest
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:98836@postgres-db:5432/docmost
|
|
- PORT=3000
|
|
- REDIS_URL=redis://98836@redis:6379
|
|
- APP_SECRET=QkXq6iVvEy6w2Z9eDsFzNrUuR7yEpXkY
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.labels.platform == dev
|
|
replicas: 2
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.docmost-sub-http.rule=Host(`docmost.emrekirman.xyz`)
|
|
- traefik.http.routers.docmost-sub-http.entrypoints=http
|
|
- traefik.http.routers.docmost-sub-http.middlewares=https-redirect
|
|
|
|
- traefik.http.routers.docmost-sub-https.rule=Host(`docmost.emrekirman.xyz`)
|
|
- traefik.http.routers.docmost-sub-https.entrypoints=https
|
|
- traefik.http.routers.docmost-sub-https.tls=true
|
|
- traefik.http.routers.docmost-sub-https.tls.certresolver=myresolver
|
|
- traefik.http.routers.docmost-sub-https.service=docmost
|
|
|
|
- traefik.http.middlewares.docmost-strip.stripprefix.prefixes=/docmost
|
|
|
|
- traefik.http.routers.docmost-path-http.rule=Host(`emrekirman.xyz`) && PathPrefix(`/docmost`)
|
|
- traefik.http.routers.docmost-path-http.entrypoints=http
|
|
- traefik.http.routers.docmost-path-http.middlewares=https-redirect
|
|
|
|
- traefik.http.routers.docmost-path-https.rule=Host(`emrekirman.xyz`) && PathPrefix(`/docmost`)
|
|
- traefik.http.routers.docmost-path-https.entrypoints=https
|
|
- traefik.http.routers.docmost-path-https.tls=true
|
|
- traefik.http.routers.docmost-path-https.tls.certresolver=myresolver
|
|
- traefik.http.routers.docmost-path-https.middlewares=docmost-strip
|
|
- traefik.http.routers.docmost-path-https.service=docmost
|
|
restart_policy:
|
|
condition: on-failure
|
|
networks:
|
|
- postgres_network
|
|
- redis_redis_net
|
|
- traefik-public
|
|
networks:
|
|
postgres_network:
|
|
external: true
|
|
redis_redis_net:
|
|
external: true
|
|
traefik-public:
|
|
external: true
|
|
volumes:
|
|
docmost_pg_data: |