feat(samples/httpaste.it): add certbot service
- update docker-compose schema version - add certbot service and shared volumes
This commit is contained in:
parent
4c5f0798bc
commit
055da1b493
1 changed files with 48 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
version: "3.4"
|
||||
version: "3.9"
|
||||
services:
|
||||
httpaste:
|
||||
build:
|
||||
|
|
@ -22,6 +22,7 @@ services:
|
|||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
-
|
||||
type: volume
|
||||
|
|
@ -29,12 +30,58 @@ services:
|
|||
target: /shared
|
||||
volume:
|
||||
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
|
||||
-
|
||||
type: volume
|
||||
source: letsencrypt
|
||||
target: /usr/local/apache2/ssl
|
||||
volume:
|
||||
nocopy: true
|
||||
tor:
|
||||
build:
|
||||
context: ./tor
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./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:
|
||||
system-shared:
|
||||
webroot:
|
||||
letsencrypt:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue