Skip to content

Instantly share code, notes, and snippets.

@jauderho
Created September 4, 2021 23:27
Show Gist options
  • Save jauderho/a24d068fc6481fdb8239014e93e93cda to your computer and use it in GitHub Desktop.
Save jauderho/a24d068fc6481fdb8239014e93e93cda to your computer and use it in GitHub Desktop.
Docker Compose file for Optimyze Prodfiler
services:
prodfiler:
container_name: prodfiler
image: optimyze/pf-host-agent:release-1.0.0
privileged: true
pid: host
command: ["/root/pf-host-agent", "-t", "all"]
environment:
- PRODFILER_PROJECT_ID=${PRODFILER_PROJECT_ID}
- PRODFILER_SECRET_TOKEN=${PRODFILER_SECRET_TOKEN}
- PRODFILER_COLLECTION_AGENT=${PRODFILER_COLLECTION_AGENT}
volumes:
- '/etc/machine-id:/etc/machine-id:ro'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/sys/kernel/debug:/sys/kernel/debug:ro'
- '/dev/null:/etc/prodfiler/prodfiler.conf'
@jauderho
Copy link
Author

jauderho commented Sep 4, 2021

Put the environment variables in .env and they will get picked up correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment