Commit 307c0e93 authored by nanahira's avatar nanahira

add sniprox

parent 17dbbdeb
---
# handlers file for utility
- name: restart_smartdns
docker_service:
docker_compose:
project_src: '{{utility_root}}'
restarted: yes
services:
- smartdns-china
- smartdns-tls
- name: restart_sni
docker_compose:
project_src: '{{utility_root}}'
restarted: yes
services:
- smartdns-china
- sni
......@@ -19,12 +19,19 @@
with_items:
- smartdns
- apt-cacher-ng-docker
- sni
- name: smartdns
synchronize:
src: ./smartdns/
dest: '{{utility_root}}/smartdns'
delete: true
notify: restart_smartdns
- name: sni
synchronize:
src: ./sni/
dest: '{{utility_root}}/sni'
delete: true
notify: restart_sni
- name: apt cacher Dockerfile
template:
src: ./apt-cacher-ng-docker/Dockerfile.j2
......
......@@ -46,6 +46,15 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
sni:
restart: always
image: nginx
dns: 114.114.114.114
ports:
- '443:443'
volumes:
- ./sni/nginx.conf:/etc/nginx/nginx.conf
squid:
restart: always
image: datadog/squid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment