-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (38 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
33
34
35
36
37
38
39
40
name: deepdanbooru
services:
cc1234-deepdanbooru:
stdin_open: true
tty: true
ports:
- 7860:7860
platform: linux/amd64
environment:
- CACHE_EXAMPLES=1
image: registry.hf.space/cc1234-deepdanbooru:cpu-bbe49e5
command: [ "python", "app.py" ]
networks:
- stash_default
container_name: deepbooru
volumes:
- ./files/:/home/user/.cache/
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:7860 || exit 1" ]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
stashbooru:
networks:
- stash_default
image: stashbooru
build: .
command: [ "python", "stashbooru.py" ]
volumes:
- ./.env:/opt/app/.env
depends_on:
cc1234-deepdanbooru:
condition: service_healthy
networks:
stash_default:
external: true
name: stash_default