mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
1.4 KiB
1.4 KiB
layout | title | permalink | parent | nav_order |
---|---|---|---|---|
default | Docker | /install/docker | Install | 2 |
Docker installation
{: .no_toc }
- TOC {:toc}
Setup
Make sure to have Docker Engine, Docker Compose and nginx installed:
sudo apt install docker docker-compose nginx
Create a directory where everything related to gancio is stored:
mkdir -p /opt/gancio
cd /opt/gancio
Download Dockerfile
and entrypoint.sh
:
wget {{site.url}}{% link /docker/Dockerfile %}
wget {{site.url}}{% link /docker/entrypoint.sh %}
Download docker-compose.yml
choosing your preferred database dialect between sqlite
, postgres
and mariadb
:
DB=sqlite
wget {{site.url}}/docker/$DB/docker-compose.yml
Build docker image
docker-compose build
Start gancio
Start your container:
docker-compose up -d
You can take a look at logs using:
tail -f data/logs/gancio.log
You'll need to [setup nginx as a proxy]({% link install/nginx.md %}) then you can point your web browser to your domain 🎉
Upgrade
warning "Backup your data" Backup your data is generally a good thing to do and this is especially true before upgrading. Don't be lazy and [backup]({% link install/backup.md %}) your data!
cd /opt/gancio
docker-compose up -d --no-deps --build