environment variables for config & dependency
This commit is contained in:
@@ -10,7 +10,10 @@ services:
|
|||||||
container_name: nginx
|
container_name: nginx
|
||||||
environment:
|
environment:
|
||||||
BACKEND_HOST: "${BACKEND_HOST}" # from .env
|
BACKEND_HOST: "${BACKEND_HOST}" # from .env
|
||||||
|
DOMAIN: "${DOMAIN}" # from .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
ports:
|
ports:
|
||||||
@@ -27,7 +30,7 @@ services:
|
|||||||
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 --email adam.a.french@outlook.com -d adam-french.co.uk --agree-tos
|
command: certonly --webroot -w /var/www/certbot --email ${EMAIL} -d ${DOMAIN} --agree-tos
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user