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"]