-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
102 lines (93 loc) · 2.1 KB
/
docker-stack.yml
File metadata and controls
102 lines (93 loc) · 2.1 KB
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
version: "3.9"
networks:
flight-net:
driver: overlay
configs:
logstash_pipeline:
file: ./logstash/logstash.conf
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.17
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
networks:
- flight-net
ports:
- "9200:9200"
deploy:
replicas: 1
restart_policy:
condition: on-failure
logstash:
image: docker.elastic.co/logstash/logstash:7.17.17
configs:
- source: logstash_pipeline
target: /usr/share/logstash/pipeline/logstash.conf
environment:
- ELASTICSEARCH_HOST=http://elasticsearch:9200
networks:
- flight-net
ports:
- "5000:5000"
deploy:
replicas: 1
restart_policy:
condition: on-failure
kibana:
image: docker.elastic.co/kibana/kibana:7.17.17
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- flight-net
ports:
- "5601:5601"
deploy:
replicas: 1
restart_policy:
condition: on-failure
mysql:
image: mysql:8.0
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_DATABASE: flightdb
MYSQL_USER: flightuser
MYSQL_PASSWORD: flightpass
MYSQL_ROOT_PASSWORD: root
networks:
- flight-net
ports:
- "3306:3306"
deploy:
replicas: 1
restart_policy:
condition: on-failure
flight-service:
image: flightservices-flight-service:latest
environment:
- JAVA_OPTS=-Xms256m -Xmx512m
- SPRING_PROFILES_ACTIVE=docker
- DB_HOST=mysql
- DB_PORT=3306
- DB_NAME=flightdb
- DB_USERNAME=flightuser
- DB_PASSWORD=flightpass
- LOGSTASH_HOST=flightstack_logstash
- LOGSTASH_PORT=5000
networks:
- flight-net
ports:
- "8080:8080"
deploy:
replicas: 2
restart_policy:
condition: on-failure
update_config:
parallelism: 1
delay: 10s
rollback_config:
parallelism: 1
delay: 10s
volumes:
mysql-data: