update Docker and Nginx configuration to support Certbot for SSL certificate management
This commit is contained in:
@ -17,7 +17,7 @@ services:
|
||||
- appnet
|
||||
restart: unless-stopped
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
image: nginx:alpine-slim
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
@ -33,9 +33,24 @@ services:
|
||||
source: app_run
|
||||
target: /app/run
|
||||
read_only: false
|
||||
- type: bind
|
||||
source: ./certbot/www
|
||||
target: /var/www/certbot
|
||||
read_only: true
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- appnet
|
||||
certbot:
|
||||
image: certbot/certbot:latest
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./certbot/www
|
||||
target: /var/www/certbot
|
||||
read_only: false
|
||||
- type: bind
|
||||
source: ./certbot/conf
|
||||
target: /etc/letsencrypt
|
||||
read_only: false
|
||||
volumes:
|
||||
app_run:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user