add certbot but have to re-see because need to specify domain and email
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
services:
|
||||
|
||||
front:
|
||||
build:
|
||||
context: ..
|
||||
@@ -8,6 +7,8 @@ services:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ../doodlestudent/front:/app
|
||||
- ./certbot/www:/var/www/certbot:ro
|
||||
- ./certbot/conf:/etc/letsencrypt:ro
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
depends_on:
|
||||
@@ -18,6 +19,16 @@ services:
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
# https://stackoverflow.com/questions/57591868/how-correctly-install-ssl-certificate-using-certbot-in-docker
|
||||
certbot:
|
||||
image: certbot/certbot:latest
|
||||
container_name: certbot
|
||||
depends_on:
|
||||
- front
|
||||
volumes:
|
||||
- ./certbot/www/:/var/www/certbot/:rw
|
||||
- ./certbot/conf/:/etc/letsencrypt/:rw
|
||||
|
||||
back:
|
||||
build:
|
||||
context: ..
|
||||
|
||||
Reference in New Issue
Block a user