forked from laradock/laradock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM phusion/baseimage:latest | ||
|
||
COPY run-certbot.sh /root/certbot/run-certbot.sh | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y letsencrypt | ||
|
||
ENTRYPOINT bash -c "bash /root/certbot/run-certbot.sh && sleep infinity" |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text | ||
|
||
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/cert1.pem | ||
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/privkey1.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,9 +311,22 @@ services: | |
- "9300:9300" | ||
links: | ||
- php-fpm | ||
|
||
### Certbot Container ################################## | ||
|
||
certbot: | ||
build: | ||
context: ./certbot | ||
volumes: | ||
- ./data/certbot/certs/:/var/certs | ||
- ./certbot/letsencrypt/:/var/www/letsencrypt | ||
environment: | ||
CN: "fake.domain.com" | ||
EMAIL: "[email protected]" | ||
|
||
### Volumes Setup ########################################### | ||
|
||
|
||
volumes: | ||
mysql: | ||
driver: "local" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters