setting up ssl
This commit is contained in:
@@ -16,13 +16,11 @@ services:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
container_name: certbot
|
||||
volumes:
|
||||
volumes:
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
command: certonly --webroot -w /var/www/certbot --force-renewal --email adam.a.french@outlook.com -d adam-french.co.uk --agree-tos
|
||||
|
||||
|
||||
command: certonly --webroot -w /var/www/certbot --force-renewal --email adam.a.french@outlook.com -d adam-french.co.uk --agree-tos --staging
|
||||
|
||||
10
post-receive
Executable file
10
post-receive
Executable file
@@ -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