forked from ausbitbank/stable-diffusion-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (31 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3"
services:
# stable-diffusion-discord-bot
arty:
build: .
container_name: stable-diffusion-discord-bot
tty: true # enable colorized logs
restart: always # should this be on-failure ?
volumes:
- ~/invokeai/outputs:/app/outputs # change the left side of the colon (:) to your InvokeAI outputs folder on the host machine
- ./config:/app/config # configuration file and database folder that must persist
- ./txt:/app/txt # randomizer files
extra_hosts:
- "host.docker.internal:host-gateway" # Allow refering to host gateway to access rembg (more reliable then hostname?)
# Background removal
rembg:
image: "danielgatis/rembg"
container_name: rembg
restart: always
ports:
- "127.0.0.1:5000:5000"
entrypoint: "rembg s"
# Redis database system WIP
#redis:
# container_name: redis
# image: "redis/redis-stack:latest"
# ports:
# - "6379:6379"
# - "8001:8001"
# volumes:
# - ./config/redis:/data