Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa47906

Browse files
committedDec 19, 2017
Replace the docker image nginx to nginx:alpine
1 parent b74e78a commit aa47906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
web:
4-
image: nginx
4+
image: nginx:alpine
55
volumes:
66
- "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
77
- "./etc/ssl:/etc/ssl"
@@ -12,7 +12,7 @@ services:
1212
- "3000:443"
1313
environment:
1414
- NGINX_HOST=${NGINX_HOST}
15-
command: /bin/bash -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
15+
command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
1616
restart: always
1717
depends_on:
1818
- php

0 commit comments

Comments
 (0)
Please sign in to comment.