version: '3.5' services: nginx: container_name: nginx image: nginx:alpine ports: - "443:443" environment: - NGINX_HOST=test.dev - NGINX_PORT=443 volumes: - type: bind source: ./config/cert.pem target: /etc/nginx/conf.d/cert.pem - type: bind source: ./config/private.key target: /etc/nginx/conf.d/private.key - type: bind source: ./config/origin-pull-ca.pem target: /etc/nginx/conf.d/origin-pull-ca.pem - type: bind source: ./config/sites.conf target: /etc/nginx/conf.d/sites.conf