setting up ssl
This commit is contained in:
+3
-5
@@ -16,13 +16,11 @@ services:
|
|||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- ./certbot/www:/var/www/certbot
|
- ./certbot/www:/var/www/certbot
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
container_name: certbot
|
container_name: certbot
|
||||||
volumes:
|
volumes:
|
||||||
- ./certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- ./certbot/www:/var/www/certbot
|
- ./certbot/www:/var/www/certbot
|
||||||
command: certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d adam-french.co.uk --agree-tos
|
command: certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d adam-french.co.uk --agree-tos --staging
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Go to deployment directory
|
||||||
|
|
||||||
|
# Pull latest changes from remote repository
|
||||||
|
|
||||||
|
# Start docker applications
|
||||||
|
docker compose up -d helloworld
|
||||||
|
docker compose up -d nginx
|
||||||
|
docker compose up -d certbot
|
||||||
Reference in New Issue
Block a user