See: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-from-a-package
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
Check the installation works running the hello-world
container:
sudo docker run hello-world
See: https://github.com/getsentry/onpremise
# install docker-compose
sudo apt-get install docker-compose
# download sentry repo
git clone https://github.com/getsentry/onpremise sentry
cd sentry/
# create database and sentry config directories
mkdir -p data/{sentry,postgres}
# generate SENTRY_SECRET_KEY
sudo docker-compose run --rm web config generate-secret-key
# update config
nano docker-compose.yml
nano config.yml
# run database migrations
sudo docker-compose run --rm web upgrade
# run services as daemons
sudo docker-compose up -d
To restart the running containers when needed:
sudo docker-compose restart
I would mention to run
sudo docker-compose run --rm web upgrade
to prepare the database