Skip to content

Instantly share code, notes, and snippets.

@jinnabaalu
Created March 19, 2019 07:31
Show Gist options
  • Save jinnabaalu/9890779caa27dcd625ba3152e63cf285 to your computer and use it in GitHub Desktop.
Save jinnabaalu/9890779caa27dcd625ba3152e63cf285 to your computer and use it in GitHub Desktop.
NGINX Docker swam service with SSL and and conf
version: '3'
services:
proxy:
image: nginx:latest
volumes:
- nginx-proxy-conf:/etc/nginx/
- nginx-proxy-ssl-certs:/etc/nginx/ssl
- nginx-proxy-html:/usr/share/nginx/html
ports:
- 80:80
- 443:443
volumes:
nginx-proxy-conf:
driver: local
driver_opts:
o: bind
type: none
device: /home/ubuntu/wsrepo/docker/nginx/nginx-proxy/conf/
nginx-proxy-ssl-certs:
driver: local
driver_opts:
o: bind
type: none
device: /home/ubuntu/wsrepo/docker/nginx/nginx-proxy/ssl/certs
nginx-proxy-html:
driver: local
driver_opts:
o: bind
type: none
device: /home/ubuntu/wsrepo/docker/nginx/nginx-proxy/html
networks:
wsproxy:
driver: overlay
ipam:
driver: default
config:
- subnet: 10.0.0.32/27
# - gateway: 10.0.0.0/26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment