Skip to content
Snippets Groups Projects
docker-compose.yml 469 B
version: "2"

services:
  nginx-app:
    container_name: nginx-app
    restart: unless-stopped
    build:
      context: ./
    volumes: 
      - ./nginx.conf.template:/etc/nginx/nginx.conf.template
    ports: 
      - ${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;"'