initial commit
This commit is contained in:
commit
2f669bd3bb
5 changed files with 126 additions and 0 deletions
40
templates/docker-compose.yml.j2
Normal file
40
templates/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,40 @@
|
|||
#jinja2: lstrip_blocks: "True"
|
||||
services:
|
||||
nginx-proxy:
|
||||
image: nginx:latest
|
||||
container_name: {{ nginx_proxy_container_name }}
|
||||
ports:
|
||||
{% for port in nginx_proxy_ports %}
|
||||
- "{{ port }}"
|
||||
{% endfor %}
|
||||
volumes:
|
||||
- {{ nginx_proxy_base_dir }}/conf.d:/etc/nginx/conf.d
|
||||
- {{ nginx_proxy_base_dir }}/html:/usr/share/nginx/html
|
||||
- {{ nginx_proxy_base_dir }}/certs:/etc/nginx/certs:ro
|
||||
environment:
|
||||
{% for key, value in nginx_proxy_nginx_env_vars.items() %}
|
||||
- "{{ key }}={{ value }}"
|
||||
{% endfor %}
|
||||
restart: always
|
||||
|
||||
docker-gen:
|
||||
image: nginxproxy/docker-gen
|
||||
container_name: {{ nginx_proxy_container_name }}-gen
|
||||
command: -notify-sighup {{ nginx_proxy_container_name }} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
||||
volumes_from:
|
||||
- nginx-proxy
|
||||
volumes:
|
||||
- {{ nginx_proxy_base_dir }}/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
|
||||
- {{ nginx_proxy_docker_socket }}:/tmp/docker.sock:ro
|
||||
labels:
|
||||
- "com.github.nginx-proxy.docker-gen"
|
||||
environment:
|
||||
{% for key, value in nginx_proxy_nginx_gen_env_vars.items() %}
|
||||
- {{ key }}={{ value }}
|
||||
{% endfor %}
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: {{ nginx_proxy_network }}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue