2024-08-27 21:48:55 -07:00
|
|
|
name: 'ai'
|
|
|
|
services:
|
2024-10-08 11:55:32 -07:00
|
|
|
traefik:
|
|
|
|
container_name: ai_traefik
|
|
|
|
image: traefik:latest
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- ./traefik.yaml:/traefik.yaml
|
|
|
|
- ./config:/config
|
|
|
|
- ./acme.json:/acme.json
|
|
|
|
|
2024-08-27 21:48:55 -07:00
|
|
|
ollama:
|
|
|
|
container_name: ai_ollama
|
|
|
|
image: ollama/ollama:0.2.5-rocm
|
|
|
|
networks:
|
|
|
|
- ai
|
|
|
|
privileged: false
|
|
|
|
group_add:
|
|
|
|
- video
|
|
|
|
ports:
|
|
|
|
- 11434:11434
|
|
|
|
devices:
|
|
|
|
- /dev/kfd
|
|
|
|
- /dev/dri
|
|
|
|
volumes:
|
|
|
|
- $HOME/docker-data/models:/models
|
|
|
|
- $HOME/docker-data/ollama:/root/.ollama
|
|
|
|
environment:
|
|
|
|
OLLAMA_MAX_LOADED_MODELS: 0
|
|
|
|
|
|
|
|
sillytavern:
|
|
|
|
container_name: ai_sillytavern
|
|
|
|
image: ghcr.io/sillytavern/sillytavern:1.12.2
|
|
|
|
networks:
|
|
|
|
- ai
|
|
|
|
privileged: false
|
|
|
|
ports:
|
|
|
|
- 8000:8000/tcp
|
|
|
|
volumes:
|
2024-10-08 11:55:32 -07:00
|
|
|
- $HOME/docker-data/sillytavern/config:/home/node/app/config
|
|
|
|
- $HOME/docker-data/sillytavern/data:/home/node/app/data
|
|
|
|
- $HOME/docker-data/sillytavern/plugins:/home/node/app/plugins
|
2024-08-27 21:48:55 -07:00
|
|
|
environment:
|
|
|
|
TZ: America/Los_Angeles
|
|
|
|
|
2024-10-08 11:55:32 -07:00
|
|
|
n8n:
|
|
|
|
container_name: ai_n8n
|
|
|
|
image: docker.n8n.io/n8nio/n8n:latest
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
volumes:
|
|
|
|
- n8n:/home/node/.n8n
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.n8n.rule=Host(`n8n.jafner.net`)
|
|
|
|
- traefik.http.routers.n8n.tls.certresolver=lets-encrypt
|
|
|
|
|
2024-08-27 21:48:55 -07:00
|
|
|
volumes:
|
|
|
|
ollama:
|
|
|
|
sillytavern:
|
2024-10-08 11:55:32 -07:00
|
|
|
n8n:
|
2024-08-27 21:48:55 -07:00
|
|
|
networks:
|
2024-10-08 11:55:32 -07:00
|
|
|
web:
|
|
|
|
external: true
|
2024-08-27 21:48:55 -07:00
|
|
|
ai:
|
|
|
|
name: "ai"
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 172.22.0.0/16
|