forked from dataduke/epizza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (76 loc) · 2.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
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
73
74
75
76
# ==============================================================================
springboot:
image: azul/zulu-openjdk:8
mem_limit: 300m
environment:
- _JAVA_OPTIONS=-Xmx256m
- SPRING_PROFILES_ACTIVE=default
- DOCKER_IP=${DOCKER_IP}
# ==============================================================================
configclient:
extends: springboot
environment:
- SPRING_CLOUD_CONFIG_LABEL=dev
- SPRING_CLOUD_CONFIG_FAIL_FAST=true
- SPRING_CLOUD_CONFIG_URI=http://configserver:8888
# ==============================================================================
data:
image: busybox
command: /bin/true
volumes:
- /var/lib/rabbitmq
# ==============================================================================
rabbitmq:
image: rabbitmq:management
volumes_from:
- data
ports:
- "5672:5672"
- "15672:15672"
# ==============================================================================
configserver:
extends:
service: springboot
image: epizza/config-server:${TAG}
# mount /repo as volume from docker-compose.override.yml
ports:
- "8888:8888"
environment:
- SPRING_PROFILES_ACTIVE=native
- SPRING_CLOUD_CONFIG_SERVER_BOOTSTRAP=true
- SPRING_CLOUD_CONFIG_SERVER_NATIVE_SEARCH_LOCATIONS=file:///repo
- SPRING_CLOUD_CONFIG_LABEL=dev
- SPRING_CLOUD_CONFIG_FAIL_FAST=true
- LOGGING_CONFIG=/repo/logback-logstash.xml
# ==============================================================================
order:
extends: configclient
image: epizza/order:${TAG}
ports:
- "8082:8082"
links:
- rabbitmq
- configserver
# ==============================================================================
bakery:
extends: configclient
image: epizza/bakery:${TAG}
links:
- rabbitmq
- configserver
# ==============================================================================
delivery:
extends: configclient
image: epizza/delivery:${TAG}
links:
- configserver
ports:
- "2000:2000"
# ==============================================================================
orderui:
extends: configclient
image: epizza/order-ui:${TAG}
links:
- configserver
ports:
- "8085:8085"