|
@@ -9,8 +9,8 @@ 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
|
|
|
+ mkdir /opt/gancio
|
|
|
+ cd /opt/gancio
|
|
|
|
|
|
note that you can choose a different directory.
|
|
|
|
|
@@ -18,23 +18,23 @@ note that you can choose a different directory.
|
|
|
## Use postgreSQL
|
|
|
1. **Download docker-compose.yml and Dockerfile**
|
|
|
|
|
|
- wget https://gancio.org/docker/Dockerfile
|
|
|
- wget https://git.lattuga.net/blat/gancio_campiinrete/src/master/docker-compose.yml
|
|
|
+ wget https://gancio.org/docker/Dockerfile
|
|
|
+ wget https://git.lattuga.net/blat/gancio_campiinrete/src/master/docker-compose.yml
|
|
|
|
|
|
-2. Create an empty configuration (**this is needed**)
|
|
|
+2. Create an empty configuration (**this is needed**)
|
|
|
|
|
|
- touch config.json
|
|
|
- mkdir user_locale
|
|
|
+ touch config.json
|
|
|
+ mkdir user_locale
|
|
|
|
|
|
|
|
|
## Gandi
|
|
|
-La risposta di gandi su come generare certificati SSL con Let's Encrypt
|
|
|
-> It is not possible to perform a DNS check via the Certbot client, you
|
|
|
-> have to go through a check via your web server (apache or nginx).
|
|
|
->
|
|
|
-> The other solution is to use the acme.sh client which allows you to
|
|
|
-> create Let's Encrypt SSL certificates using our API and LiveDNS :
|
|
|
-> https://github.com/Neilpang/acme.sh
|
|
|
+La risposta di gandi su come generare certificati SSL con Let's Encrypt
|
|
|
+> It is not possible to perform a DNS check via the Certbot client, you
|
|
|
+> have to go through a check via your web server (apache or nginx).
|
|
|
+>
|
|
|
+> The other solution is to use the acme.sh client which allows you to
|
|
|
+> create Let's Encrypt SSL certificates using our API and LiveDNS :
|
|
|
+> https://github.com/Neilpang/acme.sh
|
|
|
> https://github.com/Neilpang/acme.sh/wiki/dnsapi#18-use-gandi-livedns-api
|
|
|
|
|
|
|
|
@@ -43,21 +43,27 @@ https://github.com/Neilpang/letsproxy
|
|
|
|
|
|
aggiunti nel docker.compose.yml
|
|
|
- l'APIkey di gandi nell'environment di letsproxy
|
|
|
- GANDI_LIVEDNS_KEY=
|
|
|
+
|
|
|
+ GANDI_LIVEDNS_KEY=
|
|
|
+
|
|
|
- le conf nell'environment di gancio
|
|
|
- VIRTUAL_HOST=www.campiinrete.org
|
|
|
- ENABLE_ACME=true
|
|
|
+
|
|
|
+ VIRTUAL_HOST=www.campiinrete.org
|
|
|
+ ENABLE_ACME=true
|
|
|
|
|
|
|
|
|
# Start gancio
|
|
|
1. Create network
|
|
|
- docker network create gancio_network
|
|
|
+
|
|
|
+ docker network create gancio_network
|
|
|
|
|
|
2. Run your container
|
|
|
- docker-compose up -d
|
|
|
+
|
|
|
+ docker-compose up -d
|
|
|
|
|
|
3. Look at logs with
|
|
|
- docker-compose logs -f
|
|
|
+
|
|
|
+ docker-compose logs -f
|
|
|
|
|
|
|
|
|
## Test ssl
|