rebuild docs
This commit is contained in:
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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user