- version: '3'
- services:
- nginx:
- image: nginx:latest
- deploy:
- replicas: 1
- ports:
- - "80:80"
- - "443:443"
- networks:
- - bnet
- volumes:
- - /opt/nginx/nginx.conf:/etc/nginx/nginx.conf
- - /opt/nginx/proxy.conf:/etc/nginx/proxy.conf
- - /opt/nginx/.htpasswd:/etc/nginx/.htpasswd
- - /opt/nginx/conf.d:/etc/nginx/conf.d/
- - /opt/nginx/www/:/usr/share/nginx/html/
- - /opt/letsencrypt:/etc/letsencrypt/
- networks:
- bnet:
- external: true