25 lines
No EOL
533 B
YAML
25 lines
No EOL
533 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
container_name: taobin-sheet-container
|
|
ports:
|
|
- "8124:8124"
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
env_file:
|
|
- .env
|
|
# volumes:
|
|
# - ./tsv_data:/app/tsv_data
|
|
restart: always
|
|
command: uvicorn main:app --host 0.0.0.0 --port 8124
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx-image-container
|
|
volumes:
|
|
- ~/repo/taobin_project:/taobin_project
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
ports:
|
|
- "8080:80" |