Files
gancio/docs/install/docker.md

59 lines
1.7 KiB
Markdown
Raw Normal View History

---
layout: default
title: Docker
2019-07-27 13:04:06 +02:00
permalink: /install/docker
parent: Install
---
## Install with docker
2019-07-17 00:41:08 +02:00
**You do not need to clone the full repo as we distribute gancio via npm.**
2019-08-06 01:12:05 +02:00
A [Dockerfile](https://git.lattuga.net/cisti/gancio/raw/docker/docker/Dockerfile) and a docker-compose.yml are the only files needed.
2019-07-17 00:41:08 +02:00
1. Create a directory where everything related to gancio is stored (db, images, config)
```bash
mkdir /opt/gancio
cd /opt/gancio
```
2019-08-06 01:12:05 +02:00
:information_source: <small>you can choose a different directory.</small>
2019-07-17 00:41:08 +02:00
2019-08-06 01:12:05 +02:00
### Using postgreSQL
2019-07-17 00:41:08 +02:00
1. Download docker-compose.yml and Dockerfile
```bash
2019-08-05 01:46:43 +02:00
wget https://git.lattuga.net/cisti/gancio/raw/master/docker/Dockerfile
2019-08-06 01:12:05 +02:00
wget https://git.lattuga.net/cisti/gancio/raw/master/docker/docker-compose.postgresql.yml -O docker.compose.yml
2019-07-17 00:41:08 +02:00
```
2019-08-06 01:12:05 +02:00
1. Create an empty configiguration (**this is needed**)
```
touch config.json
```
### Using sqlite
1. Download docker-compose.yml and Dockerfile
```bash
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**)
2019-07-17 00:41:08 +02:00
```
2019-08-05 01:46:43 +02:00
touch config.json db.sqlite
2019-07-17 00:41:08 +02:00
```
2019-08-06 01:12:05 +02:00
### Finish
2019-07-17 00:41:08 +02:00
1. Build docker image and launch interactive setup in one step
```
2019-08-05 01:46:43 +02:00
docker-compose run --rm gancio gancio setup --docker
2019-07-17 00:41:08 +02:00
```
1. Run your container
```bash
docker-compose up -d
```
2019-08-06 01:12:05 +02:00
1. [Setup nginx as a proxy](/install/nginx)
2019-07-17 00:41:08 +02:00
2019-07-27 13:04:06 +02:00
1. Point your web browser to [http://localhost:13120](http://localhost:13120) or where you specified during setup and enjoy :tada:
2019-08-06 01:12:05 +02:00
1. You can edit `config.json` file and restart the container on your needs, see [Configuration](/config) for more details.