version: "3.8" services: app: build: context: . dockerfile: Dockerfile env_file: - .env ports: - "8000:8000" volumes: - .:/app restart: unless-stopped command: python main.py