rename nginx.conf to nginx.conf.tempate
This commit is contained in:
+3
-12
@@ -53,28 +53,19 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${HTTP_OUTER_PORT}:${HTTP_INNER_PORT}"
|
||||
- "${HTTPS_OUTER_PORT}:${HTTPS_INNER_PORT}"
|
||||
depends_on:
|
||||
- api
|
||||
- db
|
||||
- migrator
|
||||
restart: unless-stopped
|
||||
|
||||
nginx:
|
||||
build:
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
env_file: .env
|
||||
container_name: nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx/configs:/etc/nginx/conf.d
|
||||
- ./nginx/configs/nginx.conf.template:/etc/nginx/templates/nginx.conf.template
|
||||
- certbot-etc:/etc/letsencrypt
|
||||
- ./spa/app:/var/www/yalarba.ru/html
|
||||
networks:
|
||||
@@ -88,9 +79,9 @@ services:
|
||||
volumes:
|
||||
- certbot-etc:/etc/letsencrypt
|
||||
- certbot-var:/var/lib/letsencrypt
|
||||
command: sh -c "certbot certonly --standalone -p ${CERBOT_PORT} --noninteractive --agree-tos --email ${EMAIL} -d ${DOMAINS} --keep-until-expiring"
|
||||
env_file:
|
||||
- .env
|
||||
command: sh -c "certbot certonly --standalone -p ${CERTBOT_PORT} --noninteractive --agree-tos --email ${EMAIL} -d ${DOMAINS} --keep-until-expiring"
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user