Skip to content

Commit 48da705

Browse files
committed
Update structure
1 parent f2eb809 commit 48da705

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ cython_debug/
154154
/dict/*
155155
tester.py
156156
/config/db.json
157-
/dict/README.md
157+
/dict/README.md

Dockerfile-big

-7
This file was deleted.

docker-compose.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '3.8'
2+
3+
services:
4+
fastapi-app:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
target: runtime
9+
image: snap-hutao-generic-api:latest
10+
container_name: Snap-Hutao-Generic-API
11+
ports:
12+
- "3975:8080"
13+
volumes:
14+
- ./cache:/app/cache
15+
- ./.env:/app/.env
16+
restart: unless-stopped
17+
depends_on:
18+
- tunnel
19+
20+
tunnel:
21+
container_name: Snap-Hutao-Generic-API-Tunnel
22+
image: cloudflare/cloudflared:latest
23+
restart: unless-stopped
24+
command: tunnel --no-autoupdate run
25+
environment:
26+
- TUNNEL_TOKEN=snap-hutao-generic-api-tunnel-token

0 commit comments

Comments
 (0)