feat: add invoke
This commit is contained in:
1
hosts/pd05wd/invoke-ai/.ts-env
Normal file
1
hosts/pd05wd/invoke-ai/.ts-env
Normal file
@@ -0,0 +1 @@
|
||||
TS_AUTHKEY=""
|
||||
41
hosts/pd05wd/invoke-ai/compose.yaml
Normal file
41
hosts/pd05wd/invoke-ai/compose.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
tailscale-invoke-ai:
|
||||
image: ghcr.io/tailscale/tailscale:latest
|
||||
container_name: tailscale-invoke-ai
|
||||
cap_add:
|
||||
- net_admin
|
||||
- sys_module
|
||||
environment:
|
||||
- TS_STATE_DIR=/var/lib/tailscale
|
||||
- TS_ENABLE_METRICS=true
|
||||
- TS_HOSTNAME=invoke-ai-pd05wd
|
||||
- TS_SERVE_CONFIG=/config/serve.json
|
||||
env_file:
|
||||
- .ts-env
|
||||
network_mode: service:invoke-ai
|
||||
restart: always
|
||||
volumes:
|
||||
- tailscale:/var/lib/tailscale
|
||||
- ./serve.json:/config/serve.json
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
|
||||
invoke-ai:
|
||||
image: ghcr.io/invoke-ai/invokeai:main-cuda
|
||||
container_name: stable-diffusion
|
||||
environment:
|
||||
- INVOKEAI_ROOT=~/invokeai
|
||||
- INVOKEAI_DEVICE=cuda
|
||||
restart: always
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
capabilities: ["gpu"]
|
||||
count: all
|
||||
volumes:
|
||||
- ./invokeai:/invokeai
|
||||
|
||||
volumes:
|
||||
tailscale:
|
||||
16
hosts/pd05wd/invoke-ai/serve.json
Normal file
16
hosts/pd05wd/invoke-ai/serve.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"TCP": {
|
||||
"443": {
|
||||
"HTTPS": true
|
||||
}
|
||||
},
|
||||
"Web": {
|
||||
"${TS_CERT_DOMAIN}:443": {
|
||||
"Handlers": {
|
||||
"/": {
|
||||
"Proxy": "http://127.0.0.1:9090"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user