-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (72 loc) · 2.87 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# usage: docker-compose up
# make sure you have configured GIT_AUTH, EXTERNAL_IP, WEBAPP_STATIC in .env file
version: '2.1'
services:
discovery-service:
build:
context: https://${GIT_AUTH}@github.com/tw-leansw/leansw-discovery-service.git
dockerfile: src/main/docker/Dockerfile.compose
volumes:
- ~/.m2/:/root/.m2/
command: ["mvn", "spring-boot:run", "-DskipTest=true", "-Dspring.profiles.active=local"]
ports:
- 8761:8761
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761"]
interval: 30s
timeout: 30s
retries: 3
identity-service:
build:
context: https://${GIT_AUTH}@github.com/twconsultants/leansw-identity.git
dockerfile: src/main/docker/Dockerfile.compose
volumes:
- ~/.m2/:/root/.m2/
command: ["mvn", "spring-boot:run", "-DskipTest=true", "-Dspring.profiles.active=localv2", "-Deureka.client.serviceUrl.defaultZone=http://${EXTERNAL_IP}:8761/eureka/", "-Deureka.instance.ip-address=${EXTERNAL_IP}"]
ports:
- 2400:2400
depends_on:
discovery-service:
condition: service_healthy
cdmetrics-service:
build:
context: https://${GIT_AUTH}@github.com/twconsultants/leansw-cdmetrics.git
dockerfile: src/main/docker/Dockerfile.compose
volumes:
- ~/.m2/:/root/.m2/
command: ["mvn", "spring-boot:run", "-DskipTest=true", "-Dspring.profiles.active=localv2", "-Deureka.client.serviceUrl.defaultZone=http://${EXTERNAL_IP}:8761/eureka/", "-Deureka.instance.ip-address=${EXTERNAL_IP}"]
ports:
- 9001:9001
depends_on:
discovery-service:
condition: service_healthy
identity-service:
condition: service_started
codemetrics-service:
build:
context: https://${GIT_AUTH}@github.com/twconsultants/leansw-codemetrics.git
dockerfile: src/main/docker/Dockerfile.compose
volumes:
- ~/.m2/:/root/.m2/
command: ["mvn", "spring-boot:run", "-DskipTest=true", "-Dspring.profiles.active=localv2", "-Deureka.client.serviceUrl.defaultZone=http://${EXTERNAL_IP}:8761/eureka/", "-Deureka.instance.ip-address=${EXTERNAL_IP}"]
ports:
- 9003:9003
depends_on:
discovery-service:
condition: service_healthy
identity-service:
condition: service_started
webapp-backend:
build:
context: https://${GIT_AUTH}@github.com/twconsultants/leansw-cdmetrics-ui.git
dockerfile: java_be/src/main/docker/Dockerfile.compose
volumes:
- ~/.m2/:/root/.m2/
- ${WEBAPP_STATIC}:/src/java_be/src/main/resources/static/
working_dir: /src/java_be/
command: ["mvn", "spring-boot:run", "-DskipTest=true", "-Dspring.profiles.active=local", "-Deureka.client.serviceUrl.defaultZone=http://${EXTERNAL_IP}:8761/eureka/", "-Deureka.instance.ip-address=${EXTERNAL_IP}"]
ports:
- 9900:9900
depends_on:
discovery-service:
condition: service_healthy