Fix: Move project files to root directory

This commit is contained in:
jeremygan2021
2026-01-13 21:23:50 +08:00
parent f85cded5d9
commit ecf994ab19
16 changed files with 0 additions and 0 deletions

29
docker-compose.yml Normal file
View File

@@ -0,0 +1,29 @@
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
args:
- API_KEY
- DB_HOST
- DB_PORT
- DB_NAME
- DB_USER
- DB_PASSWORD
- DB_SSLMODE
environment:
- API_KEY=${API_KEY}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_SSLMODE=${DB_SSLMODE}
ports:
- "9090:9090"
volumes:
- .:/app
# - /mnt/server/userImage/call_avator:/mnt/server/userImage/call_avator
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9090"]
restart: always