61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
services:
|
|
arch-cpu:
|
|
image: registry.bouvais.lu/vms/arch-ttyd-cpu:1.0.0
|
|
container_name: arch-cpu
|
|
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
|
|
|
|
arch-gpu:
|
|
image: registry.bouvais.lu/vms/arch-ttyd-gpu:1.0.0
|
|
container_name: arch-gpu
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./hdd0/vms/arch_gpu/data:/data
|
|
- ./hdd0/vms/arch_gpu/root:/root
|
|
command: >
|
|
ttyd
|
|
-p 7682
|
|
-c "${TTYD_USERNAME}:${MASTER_PASSWORD}"
|
|
-W
|
|
bash
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.arch_gpu.rule=Host(`arch-gpu.bouvais.lu`)
|
|
- traefik.http.routers.arch_gpu.entrypoints=websecure
|
|
- traefik.http.routers.arch_gpu.tls.certresolver=myresolver
|
|
- traefik.http.services.arch_gpu.loadbalancer.server.port=7682
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '2.0'
|
|
memory: 1G
|
|
reservations:
|
|
cpus: '0.5'
|
|
memory: 256M
|
|
devices:
|
|
- driver: nvidia
|
|
capabilities: ["gpu"]
|
|
count: all
|