2023-07-13 13:40:56 +08:00
|
|
|
version: '3.8'
|
2023-07-13 12:20:56 +08:00
|
|
|
services:
|
2023-07-13 13:46:24 +08:00
|
|
|
daily:
|
|
|
|
build:
|
2023-07-13 13:48:31 +08:00
|
|
|
context: .
|
2023-07-13 13:46:24 +08:00
|
|
|
dockerfile: Dockerfile
|
2023-07-13 13:47:58 +08:00
|
|
|
volumes:
|
2023-07-13 13:46:24 +08:00
|
|
|
- ../daily:/home/daily
|
2023-07-13 13:47:37 +08:00
|
|
|
ports:
|
2023-07-13 13:46:24 +08:00
|
|
|
- "8001:8082"
|
2023-07-13 13:47:37 +08:00
|
|
|
networks:
|
2023-07-13 13:46:24 +08:00
|
|
|
- app
|
2023-07-13 13:47:37 +08:00
|
|
|
command:
|
2023-07-13 13:51:01 +08:00
|
|
|
cd /home/daily && python3 main.py
|
2023-07-13 13:31:39 +08:00
|
|
|
networks:
|
|
|
|
app:
|
|
|
|
driver: bridge
|