31 lines
791 B
YAML
31 lines
791 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
|
|
command: >
|
|
ttyd
|
|
-p 7681
|
|
-c "${TTYD_USERNAME}:${MASTER_PASSWORD}"
|
|
-W
|
|
bash
|
|
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
|