This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-no-logging.yml
115 lines (105 loc) · 3.36 KB
/
docker-compose-no-logging.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3'
services:
zookeeper:
image: wurstmeister/zookeeper
networks:
smartfarm_net:
ipv4_address: 172.16.238.10
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
networks:
smartfarm_net:
ipv4_address: 172.16.238.11
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ADVERTISED_HOST_NAME: 172.16.238.11
KAFKA_ZOOKEEPER_CONNECT: 172.16.238.10:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- zookeeper
postgredb:
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: smartfarm
networks:
smartfarm_net:
ipv4_address: 172.16.238.12
ports:
- "5432:5432"
mongo:
image: 'mongo:latest'
networks:
smartfarm_net:
ipv4_address: 172.16.238.15
ports:
- 27017:27017
tomcat:
image: tomcat
restart: always
networks:
smartfarm_net:
ipv4_address: 172.16.238.20
ports:
- "8080:8080"
environment:
- kafka_bootstrap_servers=172.16.238.11:9092
- datasource_postgres_alerts=jdbc:postgresql://172.16.238.12:5432/
- datasource_postgres=jdbc:postgresql://172.16.238.12:5432/
- datasource_postgres_triggered_alerts=jdbc:postgresql://172.16.238.12:5432/
- datasource_username=postgres
- datasource_password=postgres
- mongo_host=172.16.238.15
volumes:
- "./service-layer/target/ServiceLayer-0.0.1-SNAPSHOT.war:/usr/local/tomcat/webapps/ROOT.war"
- "./service-layer/target/ServiceLayer-0.0.1-SNAPSHOT:/usr/local/tomcat/webapps/ROOT"
- "./long-term-persistence/target/LongTermPersistence-0.0.1-SNAPSHOT.war:/usr/local/tomcat/webapps/persistence.war"
- "./alerts-management/target/AlertsManagement-0.0.1-SNAPSHOT.war:/usr/local/tomcat/webapps/alerts.war"
- "./alerts-management/target/AlertsManagement-0.0.1-SNAPSHOT:/usr/local/tomcat/webapps/alerts"
- "./triggered-alerts/target/TriggeredAlerts-0.0.1-SNAPSHOT.war:/usr/local/tomcat/webapps/triggeredalerts.war"
- "./triggered-alerts/target/TriggeredAlerts-0.0.1-SNAPSHOT:/usr/local/tomcat/webapps/triggeredalerts"
depends_on:
- kafka
- mongo
- postgredb
nginx_proxy:
image: nginx
networks:
smartfarm_net:
ipv4_address: 172.16.238.30
ports:
- "8000:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- tomcat
dashboard:
build:
context: ./dashboard
dockerfile: Dockerfile
volumes:
- './dashboard:/usr/src/app'
- '/usr/src/app/node_modules'
networks:
smartfarm_net:
ipv4_address: 172.16.238.40
ports:
- '3000:3000'
environment:
- NODE_ENV=development
depends_on:
- nginx_proxy
networks:
smartfarm_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24