Created
November 19, 2021 17:06
-
-
Save alecs/587cbb4c9f41e4493d455156cab4c588 to your computer and use it in GitHub Desktop.
trudesk yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
trudesk: | |
# polonel/trudesk:1.1.3 | |
image: polonel/trudesk:next | |
restart: always | |
# ports: | |
# - 8118:8118 | |
environment: | |
NODE_ENV: production | |
PORT: 8118 | |
TRUDESK_DOCKER: "true" | |
TD_MONGODB_SERVER: mongo | |
TD_MONGODB_DATABASE: trudesk | |
TD_MONGODB_USERNAME: trudesk | |
TD_MONGODB_PASSWORD: _PASSWORD_ | |
networks: | |
- traefik | |
- reverse_proxy | |
- trudesk_internal | |
deploy: | |
replicas: 1 | |
restart_policy: | |
delay: 10s | |
max_attempts: 1 | |
window: 60s | |
labels: | |
- "traefik.enable=true" | |
- "traefik.port=8118" | |
- "traefik.docker.network=reverse_proxy" | |
- "traefik.passHostHeader=true" | |
- "traefik.backend=cachet" | |
- "traefik.protocol=http" | |
- "traefik.frontend.rule=Host:ww.com,www.com" | |
- "traefik.frontend.entryPoints=http,https" | |
- "traefik.frontend.headers.SSLRedirect=false" | |
- "traefik.frontend.redirect.permanent=true" | |
- "traefik.frontend.redirect.regex=^https?://whatever.com(.*)" | |
- "traefik.frontend.redirect.replacement=https://whatever.com$$1" | |
volumes: | |
- /shared/truedesk/uploads:/usr/src/trudesk/public/uploads | |
- /shared/truedesk/plugins:/usr/src/trudesk/plugins | |
- /shared/truedesk/backups:/usr/src/trudesk/backups | |
mongo: | |
# this image tries a chown which will fail when dockremap is in place. | |
# image: mongo:3.6 | |
# this is based on alpine with mongo 3.6.5 | |
# image: mvertes/alpine-mongo:3.6.5-0 | |
# or mongo 4 | |
# image: clutteredcode/mongo-alpine | |
# local image 3.6.7 | |
# image: netops_mongodb:latest | |
image: netops_mongodb:latest | |
restart: always | |
hostname: mongo | |
environment: | |
- MONGO_USERNAME=USER | |
- MONGO_PASSWORD=_PASSWORD_ | |
# ports: | |
# - "127.0.0.1:27017:27017" | |
networks: | |
- trudesk_internal | |
volumes: | |
# if auto adding user fails, just create a mongod.conf with security disabled | |
- /shared/mongod.conf:/etc/mongod.conf | |
- /shared/truedesk/db:/data/db | |
- /shared/truedesk/configdb:/data/configdb | |
networks: | |
traefik: | |
external: true | |
attachable: true | |
reverse_proxy: | |
external: true | |
attachable: true | |
trudesk_internal: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment