forked from sun-halo/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfd.etcd.nginx.yml
More file actions
64 lines (60 loc) · 1.83 KB
/
confd.etcd.nginx.yml
File metadata and controls
64 lines (60 loc) · 1.83 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.4'
services:
nginx:
image: nginx:1.13.8-alpine
networks:
access:
volumes:
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /etc/nginx/conf.d:/etc/nginx/conf.d:ro
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
etcd:
image: daocloud.io/buxiaomo/etcd:3.2.9
networks:
access:
volumes:
- /var/lib/etcd/default:/etcd:rw
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
command: --name etcd --data-dir /etcd --advertise-client-urls http://0.0.0.0:4001 --initial-advertise-peer-urls http://0.0.0.0:7001
etcd-browser:
image: daocloud.io/buxiaomo/etcd-browser:master-cccf57a
environment:
- ETCD_HOST=127.0.0.1
- ETCD_PORT=4001
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
confd:
image: daocloud.io/buxiaomo/confd:0.15.0-docker
networks:
access:
volumes:
- /etc/confd/templates:/etc/confd/templates
- /etc/confd/conf.d:/etc/confd/conf.d
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
command: confd -interval=30 -backend etcd -node http://127.0.0.1:4001
networks:
access:
external:
name: "host"