feat(samples/httpaste.it): add certbot service

- update docker-compose schema version
- add certbot service and shared volumes
This commit is contained in:
Tiara Rodney 2022-04-15 20:47:56 +02:00
parent 4c5f0798bc
commit 055da1b493

View file

@ -1,4 +1,4 @@
version: "3.4" version: "3.9"
services: services:
httpaste: httpaste:
build: build:
@ -22,6 +22,7 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "80:80" - "80:80"
- "443:443"
volumes: volumes:
- -
type: volume type: volume
@ -29,12 +30,58 @@ services:
target: /shared target: /shared
volume: volume:
nocopy: true nocopy: true
-
type: volume
source: webroot
target: /var/www
volume:
nocopy: true
- ./httpd/usr/local/apache2/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf - ./httpd/usr/local/apache2/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
-
type: volume
source: letsencrypt
target: /usr/local/apache2/ssl
volume:
nocopy: true
tor: tor:
build: build:
context: ./tor context: ./tor
dockerfile: Dockerfile dockerfile: Dockerfile
volumes: volumes:
- ./tor/etc/tor/torrc:/etc/tor/torrc - ./tor/etc/tor/torrc:/etc/tor/torrc
certbot:
build:
context: ./certbot
dockerfile: Dockerfile
depends_on:
- httpd
profiles:
- certbot
volumes:
-
type: volume
source: webroot
target: /var/www
volume:
nocopy: true
-
type: volume
source: letsencrypt
target: /etc/letsencrypt/live
volume:
nocopy: true
command: >
certonly
-d httpaste.it
-m 43oijg@23fi5dlkw.23d080rla94we2beocz4.xyz
-w /var/www
--agree-tos
--webroot
--no-eff-email
--non-interactive
--cert-name httpaste.it
--reinstall
volumes: volumes:
system-shared: system-shared:
webroot:
letsencrypt: