Docker Headless
This flavor of P2G runs without any user interface and relies on configuration from configuration.local.json
file.
docker run -i -v /full/path/to/configuration.local.json:/app/configuration.local.json -v /full/path/to/output:/app/output philosowaffle/peloton-to-garmin:stable
docker run -i -v /full/path/to/configuration.local.json:/app/configuration.local.json -v /full/path/to/output:/app/output ghcr.io/philosowaffle/peloton-to-garmin:stable
docker-compose
Pre-requisite: You have either docker-compose
or Docker Desktop
installed
This method does not work with Garmin accounts protected by Two Step Verification
- Create a directory
p2g-headless
- Inside this folder create a docker-compose.yaml file in the directory
- Also create a configuration.local.json file in the directory.
- Edit the configuration file to use your Peloton and Garmin credentials
- Open a terminal in this folder
- Run:
docker-compose pull && docker-compose up -d
Any logs or generated files will be available in the output
directory. Additionally, you can learn more about customizing your configuration over in the Configuration Section
To stop P2G
- You can use Docker Desktop application to kill the containers
- Or, you can open a terminal in the
p2g-headless
folder- Run:
docker-compose down
- Run:
To update P2G
- Open a terminal in the
p2g-headless
folder- Run:
docker-compose pull && docker-compose up -d
- Run:
Prometheus
If you configure P2G to serve Prometheus metrics then you will also need to map the corresponding port for your docker container. By default, Prometheus metrics will be served on port 4000
. You can learn more about P2G and Prometheus in the Observability Configuration section.