Skip to content

Commit

Permalink
Update structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterain98 committed Oct 20, 2024
1 parent f2eb809 commit 48da705
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ cython_debug/
/dict/*
tester.py
/config/db.json
/dict/README.md
/dict/README.md
7 changes: 0 additions & 7 deletions Dockerfile-big

This file was deleted.

26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3.8'

services:
fastapi-app:
build:
context: .
dockerfile: Dockerfile
target: runtime
image: snap-hutao-generic-api:latest
container_name: Snap-Hutao-Generic-API
ports:
- "3975:8080"
volumes:
- ./cache:/app/cache
- ./.env:/app/.env
restart: unless-stopped
depends_on:
- tunnel

tunnel:
container_name: Snap-Hutao-Generic-API-Tunnel
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=snap-hutao-generic-api-tunnel-token

0 comments on commit 48da705

Please sign in to comment.