Skip to content

Commit af2b794

Browse files
committed
add readme
1 parent b01869a commit af2b794

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
version: '2'
2+
services:
3+
consul:
4+
image: shcoder/consul
5+
container_name: consul
6+
restart: always
7+
ports:
8+
- 8400:8400
9+
- 8500:8500
10+
- 53:53/udp
11+
entrypoint:
12+
- /bin/start
13+
- -bootstrap
14+
- -server
15+
- -client 0.0.0.0
16+
17+
registrator:
18+
image: gliderlabs/registrator
19+
container_name: registrator
20+
restart: always
21+
volumes:
22+
- /var/run/docker.sock:/tmp/docker.sock
23+
entrypoint:
24+
- /bin/registrator
25+
- -internal
26+
- consul://consul:8500
27+
links:
28+
- consul
29+
30+
proxy:
31+
image: shcoder/nginx-proxy-consul-template
32+
container_name: nginx_proxy
33+
ports:
34+
- 80:80
35+
volumes:
36+
- ${PWD}/templates:/templates
37+
links:
38+
- consul
39+
- registrator
40+
environment:
41+
- CONSUL_URL=consul:8500
42+
- SERVICE_80_NAME=nginx_proxy
43+
44+
networks:
45+
default:
46+
external:
47+
name: app

0 commit comments

Comments
 (0)