24 lines
409 B
YAML
24 lines
409 B
YAML
version: "3"
|
|
|
|
services:
|
|
todo-service:
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
image: todo-service:latest
|
|
restart: always
|
|
volumes:
|
|
- .:/app
|
|
environment:
|
|
TZ: "Asia/Shanghai"
|
|
tty: true
|
|
working_dir: /app
|
|
command: ["python3", "test.py"]
|
|
networks:
|
|
- todo-service
|
|
|
|
networks:
|
|
todo-service:
|
|
driver: bridge
|
|
|