1
0

29 lines
842 B
YAML

services:
arch-ttyd:
build:
context: .
dockerfile: Dockerfile.arch-ttyd
container_name: arch-ttyd
restart: unless-stopped
volumes:
- ./hdd0/vms/arch/data:/data
- ./hdd0/vms/arch/root:/root
- ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
environment:
- TTYD_USERNAME=${TTYD_USERNAME:-admin}
- TTYD_PASSWORD=${MASTER_PASSWORD:-changeme}
labels:
- "traefik.enable=true"
- "traefik.http.routers.arch.rule=Host(`arch.bouvais.lu`)"
- "traefik.http.routers.arch.entrypoints=websecure"
- "traefik.http.routers.arch.tls.certresolver=myresolver"
- "traefik.http.services.arch.loadbalancer.server.port=7681"
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.5'
memory: 256M