rebuild docs
This commit is contained in:
parent
d2f08d3412
commit
575bb93ad1
6 changed files with 60 additions and 11 deletions
3
docs/_site/assets/docker/Dockerfile
Normal file
3
docs/_site/assets/docker/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM node:latest
|
||||
WORKDIR /
|
||||
RUN yarn global add gancio
|
29
docs/_site/assets/docker/postgres/docker-compose.yml
Normal file
29
docs/_site/assets/docker/postgres/docker-compose.yml
Normal file
|
@ -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"
|
17
docs/_site/assets/docker/sqlite/docker-compose.yml
Normal file
17
docs/_site/assets/docker/sqlite/docker-compose.yml
Normal file
|
@ -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"
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.6">Jekyll</generator><link href="https://gancio.org/feed.xml" rel="self" type="application/atom+xml" /><link href="https://gancio.org/" rel="alternate" type="text/html" /><updated>2019-09-24T11:45:35+02:00</updated><id>https://gancio.org/feed.xml</id><title type="html">Gancio</title><subtitle>A shared agenda for local communities</subtitle></feed>
|
||||
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.6">Jekyll</generator><link href="https://gancio.org/feed.xml" rel="self" type="application/atom+xml" /><link href="https://gancio.org/" rel="alternate" type="text/html" /><updated>2019-09-25T14:43:28+02:00</updated><id>https://gancio.org/feed.xml</id><title type="html">Gancio</title><subtitle>A shared agenda for local communities</subtitle></feed>
|
|
@ -286,7 +286,7 @@
|
|||
|
||||
<h2 id="initial-setup">Initial setup</h2>
|
||||
<p><strong>You do not need to clone the full repo as we distribute gancio via npm.</strong><br>
|
||||
A <a href="https://framagit.org/les/gancio/raw/docker/docker/Dockerfile">Dockerfile</a> and a docker-compose.yml are the only files needed.</p>
|
||||
A Dockerfile and a docker-compose.yml are the only files needed.</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -305,9 +305,8 @@ A <a href="https://framagit.org/les/gancio/raw/docker/docker/Dockerfile">Dockerf
|
|||
<li>
|
||||
<strong>Download docker-compose.yml and Dockerfile</strong>
|
||||
<div class="language-bash highlighter-rouge">
|
||||
<div class="highlight"><pre class="highlight"><code>wget https://framagit.org/les/gancio/raw/master/docker/Dockerfile
|
||||
wget https://framagit.org/les/gancio/raw/master/docker/docker-compose.sqlite.yml <span class="se">\</span>
|
||||
<span class="nt">-O</span> docker-compose.yml
|
||||
<div class="highlight"><pre class="highlight"><code>wget https://gancio.org/docker/Dockerfile
|
||||
wget https://gancio.org/docker/sqlite/docker-compose.yml
|
||||
</code></pre></div> </div>
|
||||
</li>
|
||||
<li>Create an empty db and config (<strong>this is needed</strong>)
|
||||
|
@ -318,7 +317,8 @@ mkdir user_locale
|
|||
</li>
|
||||
<li>Build docker image and launch interactive setup in one step
|
||||
<div class="highlighter-rouge">
|
||||
<div class="highlight"><pre class="highlight"><code>docker-compose run --rm gancio gancio setup --docker --db=sqlite
|
||||
<div class="highlight"><pre class="highlight"><code>docker-compose build
|
||||
docker-compose run --rm gancio gancio setup --docker --db=sqlite
|
||||
</code></pre></div> </div>
|
||||
</li>
|
||||
</ol>
|
||||
|
@ -331,9 +331,8 @@ mkdir user_locale
|
|||
<li>
|
||||
<strong>Download docker-compose.yml and Dockerfile</strong>
|
||||
<div class="language-bash highlighter-rouge">
|
||||
<div class="highlight"><pre class="highlight"><code>wget https://framagit.org/les/gancio/raw/master/docker/Dockerfile
|
||||
wget https://framagit.org/les/gancio/raw/master/docker/docker-compose.postgresql.yml <span class="se">\ </span>
|
||||
<span class="nt">-O</span> docker.compose.yml
|
||||
<div class="highlight"><pre class="highlight"><code>wget https://gancio.org/docker/Dockerfile
|
||||
wget https://gancio.org/docker/sqlite/docker-compose.yml
|
||||
</code></pre></div> </div>
|
||||
</li>
|
||||
<li>Create an empty configuration (<strong>this is needed</strong>)
|
||||
|
@ -344,7 +343,8 @@ mkdir user_locale
|
|||
</li>
|
||||
<li>Build docker image and launch interactive setup in one step
|
||||
<div class="highlighter-rouge">
|
||||
<div class="highlight"><pre class="highlight"><code>docker-compose run --rm gancio gancio setup --docker --db=postgresql
|
||||
<div class="highlight"><pre class="highlight"><code>docker-compose build
|
||||
docker-compose run --rm gancio gancio setup --docker --db=postgresql
|
||||
</code></pre></div> </div>
|
||||
</li>
|
||||
</ol>
|
||||
|
|
Loading…
Reference in a new issue