-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 1.16 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
version: "2"
services:
consulize1:
#networks: # Use if Consul is in docker's network too.
# - consul
image: rickonono3/consulize:latest
container_name: consulize-1
environment:
- TARGET=http://127.0.0.1:80
- CONSUL_HTTP_ADDR=127.0.0.1:8500
- TAGS=[]
- SERVICE_HOST_FROM_CONSUL=172.17.0.1 # use Docker's Bridge
- SERVICE_PORT=8890
- SERVICE_NAME=consulize
ports:
- "8890:8890"
restart: unless-stopped
consulize2:
#networks: # Use if Consul is in docker's network too.
# - consul
image: rickonono3/consulize:latest
container_name: consulize-2 # change the container name from consulize1
environment:
- TARGET=http://127.0.0.1:80
- CONSUL_HTTP_ADDR=127.0.0.1:8500
- TAGS=[]
- SERVICE_HOST_FROM_CONSUL=172.17.0.1 # use Docker's Bridge
- SERVICE_PORT=8891 # change the port from consulize1
- SERVICE_NAME=consulize
ports:
- "8891:8891"
restart: unless-stopped
#networks: # Use if Consul is in docker's network too.
# consul:
# external:
# name: consul_consul