添加docker文件

This commit is contained in:
Administrator 2023-07-13 13:46:24 +08:00
parent 86a16027e1
commit cc9ea6167c
1 changed files with 12 additions and 11 deletions

View File

@ -1,16 +1,17 @@
version: '3.8'
services:
build:
context: ./Dockerfile
dockerfile: Dockerfile
volumes:
- ../daily:/home/daily
ports:
- "8001:8082"
networks:
- app
command:
cd /home/daily && python3 main.py'
daily:
build:
context: ./Dockerfile
dockerfile: Dockerfile
volumes:
- ../daily:/home/daily
ports:
- "8001:8082"
networks:
- app
command:
cd /home/daily && python3 main.py'
networks:
app:
driver: bridge