From aa47906c4b67a79b81d2bed8ba64f8ceeb3c7b57 Mon Sep 17 00:00:00 2001 From: Vincent Letourneau Date: Tue, 19 Dec 2017 11:43:19 +0100 Subject: [PATCH] Replace the docker image nginx to nginx:alpine --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index dc33e32..88ff7f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: web: - image: nginx + image: nginx:alpine volumes: - "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf" - "./etc/ssl:/etc/ssl" @@ -12,7 +12,7 @@ services: - "3000:443" environment: - NGINX_HOST=${NGINX_HOST} - command: /bin/bash -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'" + command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'" restart: always depends_on: - php