Skip to content

Instantly share code, notes, and snippets.

@chicago-joe
Created April 29, 2021 17:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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