1.5 KiB
1.5 KiB
Bolt card service installation using Docker
install Docker engine and Docker compose
Set up the boltcard server
- edit
.envto set up the database connection - edit
settings.sqlto set up bolt card system settings- Put the
tls.certfile andadmin.macaroonfiles in the project root directory and in the settings.sql, set the paths to the files to/boltcard/tls.certand/boltcard/admin.macaroon
- Put the
- edit
Caddyfileto set the boltcard domain name
https setup
set up the domain A record to point to the server
set up the server hosting firewall to allow open access to https (port 443) only
service bring-up and running
$ docker volume create caddy_data
// add -d for detached mode
$ docker-compose up -d
stop docker
$ docker-compose down
To delete the database and reset the docker volume, run docker-compose down --volumes
NOTE: caddy_data volume won't be removed even if you run docker-compose down --volumes because it's an external volume.
running create bolt card command
docker exec boltcard_main createboltcard/createboltcardto see optionsdocker exec boltcard_main createboltcard/createboltcard -enable -tx_max=1000 -day_max=10000 -name=card_1for example- this will give you a one-time link in text and QR code form