-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
95 lines (95 loc) · 2.37 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
services:
activemq:
image: erhancetin/activemq
restart: always
container_name: activemq
ports:
- 61613:61613
- 61616:61616
- 8161:8161
volumes:
- ./volumes/log/activemq:/var/log/activemq
environment:
- ACTIVEMQ_ADMIN_LOGIN=admin
- ACTIVEMQ_ADMIN_PASSWORD=admin
- ACTIVEMQ_CONFIG_MINMEMORY=512
- ACTIVEMQ_CONFIG_MAXMEMORY=1024
networks:
- news-tracker-network
newsproducer:
image: erhancetin/k8s-news-tracker-job
restart: on-failure
container_name: newsproducer
environment:
- NEWSAPI_AUTHORIZATION=db87162d00af4d1bb4c8031ad1cf22f5
- ACTIVEMQ_HOST=activemq
- ACTIVEMQ_PORT=61613
- ACTIVEMQ_QUEUE_NAME=news-queue
- ACTIVEMQ_USER_LOGIN=admin
- ACTIVEMQ_USER_PASSWORD=admin
- ACTIVEMQ_ADMIN_PORT=8161
- WAIT_HOSTS=activemq:8161
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=5
- WAIT_HOST_CONNECT_TIMEOUT=5
depends_on :
- activemq
networks:
- news-tracker-network
mongodb:
image: mongo
restart: on-failure
container_name: mongodb
ports:
- 27017:27017
environment:
- MONGO_INITDB_DATABASE=news-db
networks:
- news-tracker-network
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
environment:
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_SERVER=mongodb
ports:
- 8089:8081
networks:
- news-tracker-network
newsconsumer:
image: erhancetin/k8s-news-tracker-consumer
restart: on-failure
container_name: newsconsumer
environment:
- ACTIVEMQ-HOST=activemq
- ACTIVEMQ-PORT=61613
- ACTIVEMQ-QUEUE-NAME=news-queue
- MONGODB-HOST=mongodb
- MONGODB-NAME=news-db
- MONGODB-COLLECTION=article
- WAIT_HOSTS=mongodb:27017,activemq:8161
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=5
- WAIT_HOST_CONNECT_TIMEOUT=5
depends_on :
- activemq
- mongodb
networks:
- news-tracker-network
newsapi:
image: erhancetin/k8s-news-tracker-api
restart: on-failure
container_name: newsapi
ports:
- 8085:8080
environment:
- MONGODB-HOST=mongodb
- MONGODB-NAME=news-db
- MONGODB-PORT=27017
networks:
- news-tracker-network
networks:
news-tracker-network:
driver: "bridge"