2 KiB
2 KiB
layout | title | permalink | parent |
---|---|---|---|
default | Docker | /install/docker | Install |
Table of contents
{: .no_toc .text-delta }
- TOC {:toc}
Initial setup
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.
- Create a directory where everything related to gancio is stored (db, images, config)
mkdir /opt/gancio
cd /opt/gancio
note that you can choose a different directory.
Use sqlite
1. **Download docker-compose.yml and Dockerfile**
```bash
wget https://gancio.org/docker/Dockerfile
wget https://gancio.org/docker/sqlite/docker-compose.yml
```
- Create an empty db and config (this is needed)
touch config.json db.sqlite
mkdir user_locale
- Build docker image and launch interactive setup in one step
docker-compose build
docker-compose run --rm gancio gancio setup --docker --db=sqlite
Use postgreSQL
- Download docker-compose.yml and Dockerfile
wget https://gancio.org/docker/Dockerfile
wget https://gancio.org/docker/postgres/docker-compose.yml
- Create an empty configuration (this is needed)
touch config.json
mkdir user_locale
- Build docker image and launch interactive setup in one step
docker-compose build
docker-compose run --rm gancio gancio setup --docker --db=postgres
Start gancio
- Run your container
docker-compose up -d
- Look at logs with
docker-compose logs
-
Point your web browser to http://localhost:13120 or where you specified during setup and enjoy 🎉
-
You can edit
config.json
file and restart the container on your needs, see Configuration for more details.
Upgrade
cd /opt/gancio
docker-compose up -d --no-deps --build