Run in Docker
Build the image
Run these commands from the project's root directory
docker build -t xformer/services -f docker/images/services.Dockerfile .
Run in Docker
Run all services in a single Docker container.
Configuration
- Make a copy of config.ini and secrets.txt
- Clone the GitHub repository or download config.ini and secrets.txt from the repo
- Change the dataplane_token secret (in secrets.txt)
- Create a directory for the database
- Create a directory to save your files
- Review the Config documentation and change any required values
- Change app_cfg - db_url to db_url=sqlite+aiosqlite:////app/db/data.db
- Change fileprovider - path to /app/data
Run from local build
Replace {PATH TO} with the location of your files and db directory
docker run --rm -v {PATH TO}/config.ini:/app/config.ini \
-v {PATH TO}/secrets.txt:/app/secrets.txt \
-v {PATH TO}/db:/app/db/ \
-p 9000:9000 \
-p 8050:8050 \
-e APP_CONFIG_FILE=/app/config.ini \
-e SERVICE=both \
xformer/services
Run from release build
- Replace {PATH TO} with the location of your files and db directory
- Replace {TAG} with the image tag
docker run --rm -v {PATH TO}/config.ini:/app/config.ini \
-v {PATH TO}/secrets.txt:/app/secrets.txt \
-v {PATH TO}/db:/app/db/ \
-v {PATH TO}/data:/app/data \
-p 9000:9000 \
-p 8050:8050 \
-e APP_CONFIG_FILE=/app/config.ini \
-e SERVICE=both \
marcelonyc/xformer:{TAG}
NOTES
- Forwarding port 9000 is optional. That port is for the dataplane.
- After starting the container, got to http://localhost:8050