Docker - Web UI
P2G provides a website user interface. Some key features include:
- Configure your settings via a user interface
- Trigger a sync from any browser (your computer, your phone, etc.)
- Sync service can still run in the background, syncing periodically
- OpenApi for custom scripts and workflows
docker-compose
Pre-requisite: You have either docker-compose
or Docker Desktop
installed
- Create a folder named
p2g-webui
- Inside this folder create docker-compose.yaml
- Within this same directory, also create a folder called
config
- Create two more folders within the
config
directory:api
andwebui
- Within the
api
folder, create api.local.json - Within the
webui
folder, create webui.local.json
- Create two more folders within the
- Open a terminal in the
p2g-webui
folder - Run:
docker-compose pull && docker-compose up -d
- This will pull the containers and start them up running in the background
- You can close the terminal at this time
- Open a browser and navigate to
http://localhost:8002
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-webui
folder- Run:
docker-compose down
- Run:
To update P2G
- Open a terminal in the
p2g-webui
folder- Run:
docker-compose pull && docker-compose up -d
- Run:
Configuration
If you are migrating to the Web UI for the first time you will need to reconfigure most of your settings using the user interface. The only settings that are carried over and still configured via the configuration file are the ones related to Observability
.
Open Api
To access the Open API spec for P2G you will need to expose port 8080
on the Api docker container. The open API spec will be available at http://localhost:8001/swagger
.