This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
72 lines (70 loc) · 1.6 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
version: "3.3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
container_name: elasticsearch
hostname: elasticsearch
environment:
- cluster.name=elasticsearch
- discovery.type=single-node
- xpack.security.enabled=false
- network.bind_host=0.0.0.0
- network.publish_host=elasticsearch
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
networks:
- workshop
divolte:
build:
context: ./divolte
container_name: divolte
hostname: divolte
volumes:
- clickdata:/data
ports:
- "127.0.0.1:8290:8290"
networks:
- workshop
# Divolte shop service
shop-service:
build:
context: ./service
container_name: shop-service
hostname: shop-service
environment:
ELASTICSEARCH_HOSTS: '["elasticsearch"]'
ELASTICSEARCH_CLUSTER_NAME: elasticsearch
JAVA_OPTS: "-Xms512m -Xmx512m"
ports:
- "127.0.0.1:8080:8080"
- "127.0.0.1:8081:8081"
depends_on:
- elasticsearch
links:
- elasticsearch
networks:
- workshop
shop-webapp:
build:
context: ./webapp
container_name: shop-webapp
hostname: shop-webapp
environment:
SHOP_API_URL: "http://shop-service:8080/api"
SHOP_DIVOLTE_URL: "http://localhost:8290/divolte.js"
SHOP_WEBAPP_SECRET: "foo"
SHOP_WEBAPP_PORT: 9011
ports:
- "127.0.0.1:9011:9011"
depends_on:
- divolte
- shop-service
links:
- divolte
- shop-service
networks:
- workshop
networks:
workshop:
driver: bridge
volumes:
clickdata: