moving to environment variables
This commit is contained in:
@@ -4,16 +4,19 @@ networks:
|
||||
|
||||
services:
|
||||
nginx:
|
||||
build:
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
container_name: nginx
|
||||
environment:
|
||||
BACKEND_HOST: "${BACKEND_HOST}" # from .env
|
||||
restart: unless-stopped
|
||||
image: nginx
|
||||
networks:
|
||||
- app-network
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
- ./html/:/etc/nginx/html:ro
|
||||
@@ -38,7 +41,7 @@ services:
|
||||
- db
|
||||
networks:
|
||||
- app-network
|
||||
env_file:
|
||||
env_file:
|
||||
- ./.env
|
||||
|
||||
db:
|
||||
|
||||
Reference in New Issue
Block a user