34 lines
938 B
YAML
34 lines
938 B
YAML
---
|
|
version: '3.9'
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
services:
|
|
ixsystems:
|
|
image: 'ghcr.io/ixsystems/truecommand:v3.0.2'
|
|
volumes:
|
|
- ${TRUECOMMAND_DATA_DIRECTORY:-/mnt/stingray/truecommand/data}:/data
|
|
networks:
|
|
- traefik
|
|
deploy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.truecommand.rule=Host(`${TRUECOMMAND_HOST:-truecommand.stingray.mnke.org}`)"
|
|
- "traefik.http.routers.truecommand.entrypoints=websecure"
|
|
- "traefik.http.routers.truecommand.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.truecommand.loadbalancer.server.port=80"
|
|
- "traefik.swarm.network=traefik"
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints: [node.role != manager]
|
|
# resources:
|
|
# limits:
|
|
# cpus: '0.50'
|
|
# memory: 1G
|
|
# reservations:
|
|
# cpus: '0.25'
|
|
# memory: 128M
|