forked from rancher/community-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (44 loc) · 1.18 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '2'
services:
coredns:
image: coredns/coredns:1.0.1
labels:
io.rancher.sidekicks: data
io.rancher.container.hostname_override: container_name
command: [ "-conf", "/etc/coredns/Corefile" ]
ports:
- ${PUBLISH_PORT}:${PUBLISH_PORT}/tcp
- ${PUBLISH_PORT}:${PUBLISH_PORT}/udp
volumes_from:
- data
data:
image: zhenyangzhao/coredns-file:v0.8.0
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.pull_image: always
network_mode: none
entrypoint:
- confd
- -backend
- env
- -onetime
environment:
PLUGIN_ZONES: ${ZONES}
PLUGIN_ROOT_PATH: ${ROOT_PATH}
PLUGIN_ETCD_ENDPOINTS: ${ETCD_ENDPOINTS}
PLUGIN_UPSTREAM: ${UPSTREAM}
PLUGIN_PROM: ${PLUGIN_PROM}
PLUGIN_ERRORS: ${PLUGIN_ERRORS}
PLUGIN_LOG: ${PLUGIN_LOG}
PLUGIN_HEALTH: true
PLUGIN_PROXY: ${PLUGIN_PROXY}
PLUGIN_CACHE: ${PLUGIN_CACHE}
PLUGIN_LOADBALANCE: ${PLUGIN_LOADBALANCE}
PLUGIN_FORWARDS: ${FORWARDS}
PUBLISH_PORT: ${PUBLISH_PORT}
volumes:
- coredns_data:/etc/coredns
volumes:
coredns_data:
driver: local
per_container: true