2023-07-09 02:26:34 +08:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
todo-service:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
image: todo-service:latest
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
environment:
|
|
|
|
TZ: "Asia/Shanghai"
|
|
|
|
tty: true
|
2023-07-09 02:43:14 +08:00
|
|
|
working_dir: /app
|
|
|
|
command: ["python3", "test.py"]
|
2023-07-09 05:26:52 +08:00
|
|
|
networks:
|
|
|
|
- todo-service
|
|
|
|
|
|
|
|
networks:
|
|
|
|
todo-service:
|
|
|
|
driver: bridge
|
2023-07-09 02:26:34 +08:00
|
|
|
|