Newer
Older
version: "2"
services:
nginx-app:
FORESTIER Fabien
committed
container_name: nginx-app-${NODE_ENV}
build:
context: ./
volumes:
- ./nginx.conf.template:/etc/nginx/nginx.conf.template
FORESTIER Fabien
committed
- ${NGINX_PORT}:8080
command: >
/bin/sh -c
'sed "s#<MATOMO_SITE_ID>#$MATOMO_SITE_ID#g; s#<MATOMO_SERVER_URL>#$MATOMO_SERVER_URL#g" /etc/nginx/nginx.conf.template
> /etc/nginx/conf.d/default.conf
&& nginx -g "daemon off;"'