Run a Comet Server using Docker Compose. Applying configuration patches on startup, and watch for unexpected restarts.
Requirements:
dockerdocker-compose- A Comet Account with a linked API token. Manage API Tokens
Usage:
To get started, clone this repo (or download as a zip) onto your local machine, and run the following commands once you have navigated to examples/docker-compose-full -
Note: Please make sure to swap the environment variable values with your own.
Note: The
COMET_ACCOUNT_TOKENmust have theLicense::CreateLicensepermission.
export COMET_ACCOUNT_EMAIL="<your account.cometbackup.com email>"
export COMET_ACCOUNT_TOKEN="<your api key>"
docker compose upThe following will happen:
- Docker will pull the latest Comet Server container and start it
- First start up will be detected -
- A Self-Hosted license will be created with the API token provided
- A blank server config will be generated at
/var/lib/cometd/cometd.cfg
- The configuration patches will be applied from
00-config-validated.sh - The Comet Server will start up
You can now access the Comet Server at http://localhost:8060
Clean Up:
docker compose down
docker compose rm -v