Commit 5c1424bf authored by nanahira's avatar nanahira

updates

parent e5f7706d
version: '2.4'
services:
freedns:
restart: always
image: mycard/freedns-go
ports:
- '53:53'
- '53:53/udp'
command: "freedns-go -f 114.114.114.114:53 -c coredns:53 -l 0.0.0.0:53"
coredns:
restart: always
image: coredns/coredns
volumes:
- ./Corefile:/Corefile:ro
freedns:
restart: always
image: mycard/freedns-go
ports:
- '53:53'
- '53:53/udp'
command: "freedns-go -f 114.114.114.114:53 -c coredns:53 -l 0.0.0.0:53"
coredns:
restart: always
image: coredns/coredns
ports:
- '54:54'
- '54:54/udp'
volumes:
- ./Corefile:/Corefile:ro
apt-cacher-ng:
restart: always
build: apt-cacher-ng-docker
dns: 114.114.114.114
ports:
- '80:3142'
volumes:
- ./apt-cacher-ng/cache:/var/cache/apt-cacher-ng
apt-cacher-ng:
restart: always
build: apt-cacher-ng-docker
dns: 114.114.114.114
ports:
- '80:3142'
volumes:
- ./apt-cacher-ng/cache:/var/cache/apt-cacher-ng
kms:
restart: always
image: teddysun/kms
ports:
- 1688:1688
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
kms:
restart: always
image: teddysun/kms
ports:
- 1688:1688
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
......@@ -12,10 +12,10 @@
- /sys/devices/system/cpu/cpufreq/
file_type: directory
register: freq_list
- name: cpufreq performance
- name: cpufreq
become: true
copy:
content: performance
content: '{{cpupower}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
with_items: '{{freq_list.files}}'
......
......@@ -17,7 +17,7 @@
apt:
update_cache: true
state: latest
name: wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,redis-server,p7zip-full
name: wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,redis-server,p7zip-full,liblua5.3-dev
when: "ansible_os_family == 'Debian'"
- name: epel 7
become: true
......
---
- hosts: plus
remote_user: root
tasks:
- name: get dockerfile
synchronize:
src: ~/test/nginx-plus/
dest: '{{path}}/nginx-plus'
- name: replace docker-compose
lineinfile:
path: '{{path}}/docker-compose.yml'
regexp: '^([ \t]*)image: nginx.*$'
line: '\1build: ./nginx-plus'
backrefs: true
- name: docker-compose up -d
docker_compose:
project_src: '{{path}}'
build: true
services:
- nginx
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