forked from xbox1994/go-micro-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 863 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 863 Bytes
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
version: '3'
services:
consul:
image: consul
ports:
- "8500:8500"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8500"]
interval: 5s
timeout: 5s
retries: 3
config-server:
build: ./config
environment:
CONSUL_HOST: "consul"
ports:
- "8081:8081"
micro:
build: ./api
command: --registry_address=consul:8500 api
ports:
- "8080:8080"
depends_on:
- consul
greeter:
build: service/greeter
command: --registry_address=consul:8500 --profile=test --config_server=http://config-server:8081
environment:
MICRO_SERVER_ADDRESS: ":50000"
restart: always
depends_on:
- consul
user:
build: service/user
command: --registry_address=consul:8500
environment:
MICRO_SERVER_ADDRESS: ":50001"
depends_on:
- consul