From 575bb93ad1769c61413ba9ff30d4d3e94034f888 Mon Sep 17 00:00:00 2001 From: les Date: Wed, 25 Sep 2019 14:43:42 +0200 Subject: [PATCH] rebuild docs --- docs/_site/assets/docker/Dockerfile | 3 ++ .../assets/docker/postgres/docker-compose.yml | 29 +++++++++++++++++++ .../assets/docker/sqlite/docker-compose.yml | 17 +++++++++++ docs/_site/assets/js/search-data.json | 2 +- docs/_site/feed.xml | 2 +- docs/_site/install/docker.html | 18 ++++++------ 6 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 docs/_site/assets/docker/Dockerfile create mode 100644 docs/_site/assets/docker/postgres/docker-compose.yml create mode 100644 docs/_site/assets/docker/sqlite/docker-compose.yml diff --git a/docs/_site/assets/docker/Dockerfile b/docs/_site/assets/docker/Dockerfile new file mode 100644 index 00000000..4328e84d --- /dev/null +++ b/docs/_site/assets/docker/Dockerfile @@ -0,0 +1,3 @@ +FROM node:latest +WORKDIR / +RUN yarn global add gancio \ No newline at end of file diff --git a/docs/_site/assets/docker/postgres/docker-compose.yml b/docs/_site/assets/docker/postgres/docker-compose.yml new file mode 100644 index 00000000..a8235cd4 --- /dev/null +++ b/docs/_site/assets/docker/postgres/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3' + +services: + db: + image: postgres + container_name: postgres + volumes: + - db:/var/lib/postgres + - /etc/localtime:/etc/localtime:ro + environment: + - POSTGRES_USER=gancio + - POSTGRES_DB=gancio + - POSTGRES_PASSWORD=gancio + restart: always + ports: + - 5432:5432 + gancio: + build: . + image: node:latest + container_name: gancio + restart: always + command: gancio start --docker --db=postgresql + volumes: + - ./config.json:/opt/gancio/config.json + - ./uploads:/opt/gancio/uploads + depends_on: + - db + ports: + - "localhost:13120:13120" diff --git a/docs/_site/assets/docker/sqlite/docker-compose.yml b/docs/_site/assets/docker/sqlite/docker-compose.yml new file mode 100644 index 00000000..dd892e8c --- /dev/null +++ b/docs/_site/assets/docker/sqlite/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3' + +services: + gancio: + build: . + restart: always + image: node:latest + container_name: gancio + command: gancio start --docker --db=sqlite + environment: + - DEBUG + volumes: + - ./db.sqlite:/opt/gancio/db.sqlite + - ./config.json:/opt/gancio/config.json + - ./uploads:/opt/gancio/uploads + ports: + - "127.0.0.1:13120:13120" diff --git a/docs/_site/assets/js/search-data.json b/docs/_site/assets/js/search-data.json index 36e12476..9dd0d350 100644 --- a/docs/_site/assets/js/search-data.json +++ b/docs/_site/assets/js/search-data.json @@ -30,7 +30,7 @@ "4": { "id": "4", "title": "Docker", - "content": "Initial setup Use sqlite Use postgreSQL Start gancio 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 Download docker-compose.yml and Dockerfile wget https://framagit.org/les/gancio/raw/master/docker/Dockerfile wget https://framagit.org/les/gancio/raw/master/docker/docker-compose.sqlite.yml -O 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 run --rm gancio gancio setup --docker --db=sqlite Use postgreSQL Download docker-compose.yml and Dockerfile wget https://framagit.org/les/gancio/raw/master/docker/Dockerfile wget https://framagit.org/les/gancio/raw/master/docker/docker-compose.postgresql.yml -O 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 run --rm gancio gancio setup --docker --db=postgresql Start gancio Run your container docker-compose up -d Look at logs with docker-compose logs Setup nginx as a proxy Point your web browser to http://localhost:13120 or where you specified during setup and enjoy :tada: You can edit config.json file and restart the container on your needs, see Configuration for more details.", + "content": "Initial setup Use sqlite Use postgreSQL Start gancio 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 Download docker-compose.yml and Dockerfile 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/sqlite/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=postgresql Start gancio Run your container docker-compose up -d Look at logs with docker-compose logs Setup nginx as a proxy Point your web browser to http://localhost:13120 or where you specified during setup and enjoy :tada: You can edit config.json file and restart the container on your needs, see Configuration for more details.", "url": "https://gancio.org/install/docker", "relUrl": "/install/docker" }, diff --git a/docs/_site/feed.xml b/docs/_site/feed.xml index 8a6368a2..0340b1ef 100644 --- a/docs/_site/feed.xml +++ b/docs/_site/feed.xml @@ -1 +1 @@ -Jekyll2019-09-24T11:45:35+02:00https://gancio.org/feed.xmlGancioA shared agenda for local communities \ No newline at end of file +Jekyll2019-09-25T14:43:28+02:00https://gancio.org/feed.xmlGancioA shared agenda for local communities \ No newline at end of file diff --git a/docs/_site/install/docker.html b/docs/_site/install/docker.html index e66af5a9..1fbfdee0 100644 --- a/docs/_site/install/docker.html +++ b/docs/_site/install/docker.html @@ -286,7 +286,7 @@

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.

+A Dockerfile and a docker-compose.yml are the only files needed.