2019-07-25 10:36:35 +02:00
<!DOCTYPE html>
< html lang = "en-US" >
< head >
< meta charset = "UTF-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=Edge" >
2019-07-30 15:39:25 +02:00
< title > Docker - Gancio</ title >
2019-07-25 10:36:35 +02:00
2019-08-31 22:51:28 +02:00
< link rel = "shortcut icon" href = "https://gancio.org/favicon.ico" type = "image/x-icon" >
< link rel = "stylesheet" href = "https://gancio.org/assets/css/just-the-docs.css" >
2019-07-25 10:36:35 +02:00
2019-08-31 22:51:28 +02:00
< script type = "text/javascript" src = "https://gancio.org/assets/js/vendor/lunr.min.js" ></ script >
2019-07-25 10:36:35 +02:00
2019-07-30 15:39:25 +02:00
2019-08-31 22:51:28 +02:00
< script type = "text/javascript" src = "https://gancio.org/assets/js/just-the-docs.js" ></ script >
2019-07-25 10:36:35 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
2019-08-31 22:51:28 +02:00
< script src = "https://gancio.org/assets/js/jquery-3.3.1.min.js" ></ script >
< link rel = "stylesheet" href = "https://gancio.org/assets/css/jquery.fancybox.min.css" />
< script src = "https://gancio.org/assets/js/jquery.fancybox.min.js" ></ script >
2019-07-30 15:39:25 +02:00
<!-- Begin Jekyll SEO tag v2.6.1 -->
2019-07-25 10:36:35 +02:00
< title > Docker | Gancio</ title >
< meta name = "generator" content = "Jekyll v3.8.6" />
< meta property = "og:title" content = "Docker" />
< meta property = "og:locale" content = "en_US" />
< meta name = "description" content = "A shared agenda for local communities" />
< meta property = "og:description" content = "A shared agenda for local communities" />
2019-08-31 22:51:28 +02:00
< link rel = "canonical" href = "https://gancio.org/install/docker" />
< meta property = "og:url" content = "https://gancio.org/install/docker" />
2019-07-25 10:36:35 +02:00
< meta property = "og:site_name" content = "Gancio" />
< script type = "application/ld+json" >
2019-08-31 22:51:28 +02:00
{ "@type" : "WebPage" , "url" : "https://gancio.org/install/docker" , "headline" : "Docker" , "description" : "A shared agenda for local communities" , "@context" : "https://schema.org" }</ script >
2019-07-25 10:36:35 +02:00
<!-- End Jekyll SEO tag -->
</ head >
< body >
< div class = "page-wrap" >
< div class = "side-bar" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/" class = "site-title fs-6 lh-tight" > Gancio</ a >
2019-07-25 10:36:35 +02:00
< span class = "fs-3" >< button class = "js-main-nav-trigger navigation-list-toggle btn btn-outline" type = "button" data-text-toggle = "Hide" > Menu</ button ></ span >
< div class = "navigation main-nav js-main-nav" >
< nav role = "navigation" aria-label = "Main navigation" >
< ul class = "navigation-list" >
< li class = "navigation-list-item active" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/404.html" class = "navigation-list-link" ></ a >
2019-07-25 10:36:35 +02:00
</ li >
2019-07-26 23:53:02 +02:00
2019-09-21 23:26:21 +02:00
2019-07-25 10:36:35 +02:00
< li class = "navigation-list-item" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/" class = "navigation-list-link" > Home</ a >
2019-07-25 10:36:35 +02:00
</ li >
< li class = "navigation-list-item active" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/install" class = "navigation-list-link" > Install</ a >
2019-07-25 10:36:35 +02:00
< ul class = "navigation-list-child-list " >
< li class = "navigation-list-item " >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/install/debian" class = "navigation-list-link" > Debian</ a >
2019-07-25 10:36:35 +02:00
</ li >
< li class = "navigation-list-item active" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/install/docker" class = "navigation-list-link active" > Docker</ a >
2019-07-25 10:36:35 +02:00
</ li >
2019-07-26 23:53:02 +02:00
2019-09-21 23:26:21 +02:00
2019-07-25 10:36:35 +02:00
< li class = "navigation-list-item " >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/install/nginx" class = "navigation-list-link" > Nginx</ a >
2019-07-25 10:36:35 +02:00
</ li >
</ ul >
</ li >
< li class = "navigation-list-item" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/config" class = "navigation-list-link" > Configuration</ a >
2019-07-25 10:36:35 +02:00
</ li >
< li class = "navigation-list-item" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/dev" class = "navigation-list-link" > Hacking</ a >
2019-07-25 10:36:35 +02:00
2019-07-27 01:26:05 +02:00
< ul class = "navigation-list-child-list " >
2019-09-21 23:26:21 +02:00
< li class = "navigation-list-item " >
< a href = "https://gancio.org/dev/locales" class = "navigation-list-link" > Support a new language</ a >
</ li >
2019-07-27 01:26:05 +02:00
< li class = "navigation-list-item " >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/dev/migration" class = "navigation-list-link" > Migration</ a >
2019-07-27 01:26:05 +02:00
</ li >
< li class = "navigation-list-item " >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/dev/structure" class = "navigation-list-link" > Project Structure</ a >
2019-07-27 01:26:05 +02:00
</ li >
</ ul >
2019-07-25 10:36:35 +02:00
</ li >
2019-07-26 23:53:02 +02:00
< li class = "navigation-list-item" >
2019-08-31 22:51:28 +02:00
< a href = "https://gancio.org/instances" class = "navigation-list-link" > Instances</ a >
2019-07-26 23:53:02 +02:00
</ li >
2019-07-25 10:36:35 +02:00
</ ul >
</ nav >
</ div >
< footer role = "contentinfo" class = "site-footer" >
< p class = "text-small text-grey-dk-000 mb-0" > This site uses < a href = "https://github.com/pmarsceill/just-the-docs" > Just the Docs</ a > , a documentation theme for Jekyll.</ p >
</ footer >
</ div >
< div class = "main-content-wrap js-main-content" tabindex = "0" >
< div class = "page-header" >
< div class = "main-content" >
< div class = "search js-search" >
< div class = "search-input-wrap" >
< input type = "text" class = "js-search-input search-input" tabindex = "0" placeholder = "Search Gancio" aria-label = "Search Gancio" autocomplete = "off" >
< svg width = "14" height = "14" viewbox = "0 0 28 28" xmlns = "http://www.w3.org/2000/svg" class = "search-icon" >< title > Search</ title >
< g fill-rule = "nonzero" >< path d = "M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z" ></ path >< path d = "M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z" ></ path ></ g ></ svg >
</ div >
< div class = "js-search-results search-results-wrap" ></ div >
</ div >
< ul class = "list-style-none text-small mt-md-1 mb-md-1 pb-4 pb-md-0 js-aux-nav aux-nav" >
2019-09-21 23:26:21 +02:00
< li class = "d-inline-block my-0 mr-2" >< a href = "https://framagit.org/les/gancio" > Source</ a ></ li >
< li class = "d-inline-block my-0" >< a href = "https://framavox.org/g/hMXTDgtJ/gancio" > Forum</ a ></ li >
2019-07-25 10:36:35 +02:00
</ ul >
</ div >
</ div >
< div class = "main-content" >
< nav class = "breadcrumb-nav" >
< ol class = "breadcrumb-nav-list" >
2019-08-31 22:51:28 +02:00
< li class = "breadcrumb-nav-list-item" >< a href = "https://gancio.org/install" > Install</ a ></ li >
2019-07-25 10:36:35 +02:00
< li class = "breadcrumb-nav-list-item" >< span > Docker</ span ></ li >
</ ol >
</ nav >
< div id = "main-content" class = "page-content" role = "main" >
2019-09-24 11:46:11 +02:00
< h2 class = "no_toc text-delta" id = "table-of-contents" > Table of contents</ h2 >
< ol id = "markdown-toc" >
< li >< a href = "#initial-setup" id = "markdown-toc-initial-setup" > Initial setup</ a ></ li >
< li >< a href = "#use-sqlite" id = "markdown-toc-use-sqlite" > Use sqlite</ a ></ li >
< li >< a href = "#use-postgresql" id = "markdown-toc-use-postgresql" > Use postgreSQL</ a ></ li >
< li >< a href = "#start-gancio" id = "markdown-toc-start-gancio" > Start gancio</ a ></ li >
</ ol >
< h2 id = "initial-setup" > Initial setup</ h2 >
2019-07-25 10:36:35 +02:00
< p >< strong > You do not need to clone the full repo as we distribute gancio via npm.</ strong >< br >
2019-08-31 22:14:37 +02:00
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 >
2019-07-25 10:36:35 +02:00
2019-09-24 11:46:11 +02:00
< ul >
< li >
< strong > Create a directory where everything related to gancio is stored (db, images, config)</ strong >
2019-07-25 10:36:35 +02:00
< div class = "language-bash highlighter-rouge" >
< div class = "highlight" >< pre class = "highlight" >< code >< span class = "nb" > mkdir</ span > /opt/gancio
< span class = "nb" > cd</ span > /opt/gancio
</ code ></ pre ></ div > </ div >
2019-09-24 11:46:11 +02:00
< p >< small > note that you can choose a different directory.</ small ></ p >
2019-07-25 10:36:35 +02:00
</ li >
2019-09-24 11:46:11 +02:00
</ ul >
2019-08-06 01:12:05 +02:00
2019-09-24 11:46:11 +02:00
< h2 id = "use-sqlite" > Use sqlite</ h2 >
< div class = "code-example bg-grey-lt-100" >
< ol >
< li >
< strong > Download docker-compose.yml and Dockerfile</ strong >
< div class = "language-bash highlighter-rouge" >
2019-08-31 22:14:37 +02:00
< div class = "highlight" >< pre class = "highlight" >< code > wget https://framagit.org/les/gancio/raw/master/docker/Dockerfile
2019-09-24 11:46:11 +02:00
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
</ code ></ pre ></ div > </ div >
</ li >
< li > Create an empty db and config (< strong > this is needed</ strong > )
< div class = "highlighter-rouge" >
< div class = "highlight" >< pre class = "highlight" >< code > touch config.json db.sqlite
mkdir user_locale
</ code ></ pre ></ div > </ div >
</ 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
</ code ></ pre ></ div > </ div >
</ li >
</ ol >
</ div >
2019-08-06 01:12:05 +02:00
2019-09-24 11:46:11 +02:00
< h2 id = "use-postgresql" > Use postgreSQL</ h2 >
< div class = "code-example bg-grey-lt-100" >
< ol >
< li >
< strong > Download docker-compose.yml and Dockerfile</ strong >
< div class = "language-bash highlighter-rouge" >
2019-08-31 22:14:37 +02:00
< div class = "highlight" >< pre class = "highlight" >< code > wget https://framagit.org/les/gancio/raw/master/docker/Dockerfile
2019-09-24 11:46:11 +02:00
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
</ code ></ pre ></ div > </ div >
</ li >
< li > Create an empty configuration (< strong > this is needed</ strong > )
< div class = "highlighter-rouge" >
< div class = "highlight" >< pre class = "highlight" >< code > touch config.json
mkdir user_locale
</ code ></ pre ></ div > </ div >
</ 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
</ code ></ pre ></ div > </ div >
</ li >
</ ol >
</ div >
2019-08-06 01:12:05 +02:00
2019-09-24 11:46:11 +02:00
< h2 id = "start-gancio" > Start gancio</ h2 >
2019-08-06 01:12:05 +02:00
< ol >
2019-07-25 10:36:35 +02:00
< li > Run your container
< div class = "language-bash highlighter-rouge" >
< div class = "highlight" >< pre class = "highlight" >< code > docker-compose up < span class = "nt" > -d</ span >
2019-09-24 11:46:11 +02:00
</ code ></ pre ></ div > </ div >
</ li >
< li > Look at logs with
< div class = "language-bash highlighter-rouge" >
< div class = "highlight" >< pre class = "highlight" >< code > docker-compose logs
2019-07-25 10:36:35 +02:00
</ code ></ pre ></ div > </ div >
</ li >
< li >
2019-08-06 01:12:05 +02:00
< p >< a href = "/install/nginx" > Setup nginx as a proxy</ a ></ p >
</ li >
< li >
< p > Point your web browser to < a href = "http://localhost:13120" > http://localhost:13120</ a > or where you specified during setup and enjoy < img class = "emoji" title = ":tada:" alt = ":tada:" src = "https://github.githubassets.com/images/icons/emoji/unicode/1f389.png" height = "20" width = "20" ></ p >
2019-07-25 10:36:35 +02:00
</ li >
2019-08-06 01:12:05 +02:00
< li > You can edit < code class = "highlighter-rouge" > config.json</ code > file and restart the container on your needs, see < a href = "/config" > Configuration</ a > for more details.</ li >
2019-07-25 10:36:35 +02:00
</ ol >
</ div >
</ div >
</ div >
</ div >
</ body >
</ html >