prefect docker agent & client initial setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
agent: | |
build: . | |
command: bash -c "prefect agent local start -t %AGENT-SERVICE-TOKEN% --label pwcm" | |
volumes: | |
- /srv/docker/prefect/flows:/root/.prefect/flows | |
- type: bind | |
source: ./config.toml | |
target: /root/.prefect/config.toml | |
read_only: true | |
client: | |
build: . | |
command: python /worker/main.py | |
volumes: | |
- /srv/docker/prefect/flows:/root/.prefect/flows | |
- type: bind | |
source: ./prefectPWCM/worker/main.py | |
target: /worker/main.py | |
read_only: true | |
- type: bind | |
source: ./config.toml | |
target: /root/.prefect/config.toml | |
read_only: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment