y2kbug icon

demo-nginx-docker-compose.yml

y2kbug | PRO | 09/30/20 04:34:12 AM UTC | 0 ⭐ | 415 👁️ | Never ⏰ | []
text |

620 B

|

None

|

0 👍

/

0 👎

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
 

Comments