Init AI Stack

This commit is contained in:
Joey Hafner 2024-10-08 11:55:32 -07:00
parent 7639188890
commit 4a290e5878
No known key found for this signature in database
2 changed files with 75 additions and 1 deletions

View File

@ -1,5 +1,19 @@
name: 'ai'
services:
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
ollama:
container_name: ai_ollama
image: ollama/ollama:0.2.5-rocm
@ -28,14 +42,30 @@ services:
ports:
- 8000:8000/tcp
volumes:
- $HOME/docker-data/sillytavern:/home/node/app/config
- $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
environment:
TZ: America/Los_Angeles
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
volumes:
ollama:
sillytavern:
n8n:
networks:
web:
external: true
ai:
name: "ai"
ipam:

View File

@ -0,0 +1,44 @@
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: :443
metrics:
prometheus: {}
certificatesResolvers:
lets-encrypt:
acme:
email: jafner425@gmail.com
storage: acme.json
tlsChallenge: {}
lets-encrypt-dns01:
acme:
email: jafner425@gmail.com
storage: acme-dns01.json
dnsChallenge:
provider: cloudflare
resolvers:
- "1.1.1.1:53"
- "8.8.8.8:53"
api:
insecure: true
dashboard: true
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
watch: true
network: web
file:
directory: /config