# install docker & tools
sudo apt-get update
sudo apt-get install docker.io docker-compose git mc
# enable docker service for auto restarts
sudo systemctl enable docker
# clone repository to get deploy scripts
git clone --depth 10 https://github.com/fontello/fontello.git
# start server
cd fontello/support/deploy
docker-compose up -d
cd fontello/support/deploy
docker-compose build
docker-compose down
docker-compose up -d
# Cleanup:
# - remove anonymous volumes (but keep named), 3 currently used volumes will error out
# - remove all stopped containers (they are usually removed automatically)
# - remove all unused and untagged images
docker volume rm $(docker volume ls -q | awk '$0 !~ /[^0-9a-f]/ && length($0) == 64 { print }')
docker container prune
docker image prune
To deploy a different git branch, set $BRANCH as env variable during build:
BRANCH=dev docker-compose build
Fontello binds on https://fontello.com
by default, override it using env variables like this:
PROTO=http HOST=localhost docker-compose up