Created
March 19, 2019 07:31
-
-
Save jinnabaalu/9890779caa27dcd625ba3152e63cf285 to your computer and use it in GitHub Desktop.
NGINX Docker swam service with SSL and and conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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