gancio-upstream/docs/install/docker.md

60 lines
1.3 KiB
Markdown
Raw Normal View History

---
layout: default
title: Docker
2019-07-27 13:04:06 +02:00
permalink: /install/docker
parent: Install
2021-06-04 15:34:40 +02:00
nav_order: 2
---
2021-06-04 15:52:35 +02:00
## Docker installation
{: .no_toc }
2019-09-24 11:46:11 +02:00
1. TOC
{:toc}
2022-01-26 15:38:53 +01:00
## Setup
2021-07-08 22:50:21 +02:00
2022-01-26 15:38:53 +01:00
Make sure to have [Docker Engine](https://docs.docker.com/engine/install/),
[Docker Compose](https://docs.docker.com/compose/install/) and [nginx](https://nginx.org/en/docs/install.html) installed:
2021-10-25 11:09:10 +02:00
```bash
sudo apt install docker docker-compose nginx
```
2021-07-08 22:50:21 +02:00
2022-01-26 15:38:53 +01:00
Create a directory where everything related to gancio is stored:
2019-07-17 00:41:08 +02:00
```bash
2021-07-01 10:56:12 +02:00
mkdir -p /opt/gancio
2019-07-17 00:41:08 +02:00
cd /opt/gancio
```
2022-01-26 15:38:53 +01:00
Download `docker-compose.yml` choosing your preferred database dialect between `sqlite`, `postgres` and `mariadb`:
2019-08-06 01:12:05 +02:00
```bash
2022-01-26 15:38:53 +01:00
DB=sqlite
wget {{site.url}}/docker/$DB/docker-compose.yml
2019-08-06 01:12:05 +02:00
```
2019-09-24 11:46:11 +02:00
## Start gancio
2019-07-17 00:41:08 +02:00
2022-01-26 15:38:53 +01:00
Start your container:
2019-07-17 00:41:08 +02:00
```bash
docker-compose up -d
```
2022-01-26 15:38:53 +01:00
You can take a look at logs using:
2019-09-24 11:46:11 +02:00
```bash
2021-06-04 15:34:40 +02:00
tail -f data/logs/gancio.log
2019-09-24 11:46:11 +02:00
```
2022-01-26 15:38:53 +01:00
You'll need to [setup nginx as a proxy]({% link install/nginx.md %}) then you can point your web browser to your domain :tada:
2019-08-06 01:12:05 +02:00
2019-09-26 16:56:28 +02:00
## Upgrade
2021-06-04 15:34:40 +02:00
> warning "Backup your data"
> Backup your data is generally a good thing to do and this is especially true before upgrading.
2021-06-04 20:37:19 +02:00
> Don't be lazy and [backup]({% link install/backup.md %}) your data!
2021-06-04 15:34:40 +02:00
2019-09-26 16:56:28 +02:00
```bash
2022-05-10 16:51:27 +02:00
cd /opt/gancio # or where your installation is
docker-compose pull && docker-compose up -d
2021-07-08 17:56:09 +02:00
```