-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (111 loc) · 3.23 KB
/
docker-compose.yml
File metadata and controls
122 lines (111 loc) · 3.23 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3'
#docker-compose -f ./docker-compose.yml up or docker-compose up
name: python-cicd-restapi
services:
jenkins:
image: jenkins/jenkins:lts
privileged: true
user: root
ports:
- 8089:8080
- 50000:50000
container_name: jenkins
volumes:
- ~/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker
fn-cicd-basic-omni_es:
image: fn-cicd-basic-api:omni_es
container_name: fn-cicd-basic-omni_es
build:
context: .
dockerfile: Dockerfile
target: omni_es
ports:
- 9200:9201
- 9203:9201
# restart: unless-stopped
environment:
# v_7
# - node.name=fn-dm-bees-omni-data-01
# - discovery.type=single-node
# - http.port=9201
# - http.cors.enabled=true
# - http.cors.allow-origin=*
# - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
# - http.cors.allow-credentials=true
# - xpack.security.enabled=false
# - bootstrap.system_call_filter=false
# - ES_JAVA_OPTS=-Xms1g -Xmx1g
# v_8
- http.host=0.0.0.0
- node.name=fn-dm-bees-omni-data-01
- node.roles=[data, master]
- cluster.name=docker-elasticsearch
- cluster.initial_master_nodes=fn-dm-bees-omni-data-01
- discovery.seed_hosts=fn-dm-bees-omni-data-01
- cluster.routing.allocation.disk.threshold_enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- xpack.license.self_generated.type=basic
- action.destructive_requires_name=false
- http.port=9201
- reindex.remote.whitelist=${NODE_WHITE_LIST}
volumes:
- data:/usr/share/elasticsearch/data
- ./Docker/elasticsearch/backup:/usr/share/elasticsearch/backup
- ./Docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
healthcheck:
test: ["CMD", "curl","-s" ,"-f", "http://localhost:9201/_cat/health"]
networks:
- bridge
fn-cicd-basic-kibana:
image: docker.elastic.co/kibana/kibana:8.8.0
container_name: fn-cicd-basic-kibana
ports:
- 15601:5601
networks:
- bridge
depends_on:
- fn-cicd-basic-omni_es
environment:
ELASTICSEARCH_HOSTS: http://fn-cicd-basic-omni_es:9201
fn-cicd-basic-api:
image: fn-cicd-basic-api:es
container_name: fn-cicd-basic-api
build:
context: .
dockerfile: Dockerfile
target: runtime
ports:
- 15555:5555
volumes:
- ./:/app/FN-Basic-Services
restart: unless-stopped
environment:
- ES_HOST=http://host.docker.internal:9203
networks:
- bridge
fn-cicd-basic-api-test:
image: fn-cicd-basic-api:test
container_name: fn-cicd-basic-api-test
build:
context: .
dockerfile: Dockerfile
target: test
ports:
- 15556:5555
volumes:
- ./:/app/FN-Basic-Services
# restart: unless-stopped
environment:
- ES_HOST=http://host.docker.internal:9203
networks:
- bridge
volumes:
data:
driver: local
networks:
bridge:
driver: bridge