diff --git a/doc/build.sh b/doc/build.sh index e69de29..7b25c03 100644 --- a/doc/build.sh +++ b/doc/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# sh ./build.sh id_rsa_insylva_docker +if [$1 -eq ""] +then + set "id_rsa_insylva_docker" +fi + +while [ "$1" != "" ]; do + SSH_KEY=$(cat ~/.ssh/$1) + SSH_KEY_PASSPHRASE=$(cat ~/.ssh/$1.pub) + # Shift all the parameters down by one + shift +done + +docker build --no-cache --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.doc . + diff --git a/doc/run.sh b/doc/run.sh index e69de29..63d0b54 100644 --- a/doc/run.sh +++ b/doc/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run -d -p 3003:3000 in-sylva.doc:latest \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 7e9c775..893ebdc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -265,13 +265,27 @@ services: container_name: in-sylva.portainer image: portainer/portainer command: -H unix:///var/run/docker.sock - restart: always + restart: unless-stopped ports: - 9000:9000 - 8000:8000 volumes: - /var/run/docker.sock:/var/run/docker.sock - - portainer_data:/data + - portainer_data:/data + + doc: + container_name: in-sylva.doc + image: in-sylva.doc:latest + restart: unless-stopped + volumes: + - ./docs:/app/docs + - ./doc/website/blog:/app/website/blog + - ./doc/website/core:/app/website/core + - ./doc/website/i18n:/app/website/i18n + - ./doc/website/pages:/app/website/pages + ports: + - 3004:3000 + - 35729:35729 volumes: postgres-data: