Skip to content

Instantly share code, notes, and snippets.

@chicago-joe
Created April 29, 2021 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chicago-joe/32fae052376ae535dc8f518976344987 to your computer and use it in GitHub Desktop.
Save chicago-joe/32fae052376ae535dc8f518976344987 to your computer and use it in GitHub Desktop.
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