Replace the docker image nginx to nginx:alpine

This commit is contained in:
Vincent Letourneau
2017-12-19 11:43:19 +01:00
parent b74e78af2d
commit aa47906c4b

View File

@@ -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