version: '3.6'
services:
  ssl-term:
    image: nginx:${NGINX_VERSION}
    restart: on-failure:30
    env_file:
      - .env
    ports:
      - 80:80
      - 443:443
    expose:
      - 80
      - 443
    networks:
      default:
        aliases:
          - scandipwa.local
    volumes:
      - ./opt/cert:/etc/nginx/cert:cached
      - ./deploy/shared/conf/nginx/ssl-terminator.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - nginx
