Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
prefect docker agent & client initial setup
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