gancio/docs/install/docker.md
2019-08-06 01:12:05 +02:00

1.7 KiB
Raw Blame History

layout title permalink parent
default Docker /install/docker Install

Install with docker

You do not need to clone the full repo as we distribute gancio via npm.
A Dockerfile and a docker-compose.yml are the only files needed.

  1. Create a directory where everything related to gancio is stored (db, images, config)
mkdir /opt/gancio
cd /opt/gancio

you can choose a different directory.

Using postgreSQL

  1. Download docker-compose.yml and Dockerfile
wget https://git.lattuga.net/cisti/gancio/raw/master/docker/Dockerfile
wget https://git.lattuga.net/cisti/gancio/raw/master/docker/docker-compose.postgresql.yml -O docker.compose.yml
  1. Create an empty configiguration (this is needed)
touch config.json

Using sqlite

  1. Download docker-compose.yml and Dockerfile
wget https://git.lattuga.net/cisti/gancio/raw/master/docker/Dockerfile
wget https://git.lattuga.net/cisti/gancio/raw/master/docker/docker-compose.sqlite.yml -O docker-compose.yml
  1. Create an empty db and config (this is needed)
touch config.json db.sqlite

Finish

  1. Build docker image and launch interactive setup in one step
docker-compose run --rm gancio gancio setup --docker
  1. Run your container
docker-compose up -d
  1. Setup nginx as a proxy

  2. Point your web browser to http://localhost:13120 or where you specified during setup and enjoy 🎉

  3. You can edit config.json file and restart the container on your needs, see Configuration for more details.