forked from kit-data-manager/metastore2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
104 lines (104 loc) · 2.76 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
96
97
98
99
100
101
102
103
104
version: "3.8"
services:
dps:
image: defreitas/dns-proxy-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/resolv.conf:/etc/resolv.conf
environment:
- MG_LOG_LEVEL=ERROR
hostname: dns.mageddo
networks:
dps:
ipv4_address: 172.0.0.10
my-apache:
image: ${PREFIX4DOCKER}/frontend-collection-metastore:${FRONTEND_COLLECTION_VERSION}
container_name: frontend.docker
hostname: frontend.docker
ports:
- "80:80"
networks:
- dps
elasticsearch:
image: elasticsearch:${ELASTICSEARCH_VERSION}
container_name: elastic.docker
hostname: elastic.docker
environment:
- discovery.type=single-node
- xpack.security.enabled=false
# - logger.org.elasticsearch=ERROR
- HOSTNAMES=elastic.docker
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 5s
timeout: 2s
retries: 3
start_period: 10s
ports:
- "9200:9200"
- "9300:9300"
networks:
- dps
rabbitmq:
image: rabbitmq:4-management
depends_on:
- elasticsearch
container_name: rabbitmq.docker
hostname: rabbitmq.docker
environment:
- HOSTNAMES=rabbitmq.docker
- RABBITMQ_DEFAULT_USER=${RABBIT_MQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBIT_MQ_PASSWORD}
ports:
- "5672:5672"
- "15672:15672"
networks:
- dps
indexing-service:
image: ${PREFIX4DOCKER}/indexing-service:${INDEXING_SERVICE_VERSION}
container_name: indexing.docker
hostname: indexing.docker
environment:
- REPO_MESSAGING_USERNAME=${RABBIT_MQ_USER}
- REPO_MESSAGING_PASSWORD=${RABBIT_MQ_PASSWORD}
- REPO_AUTH_JWTSECRET=${JWT_SECRET}
depends_on:
rabbitmq:
condition: service_started
elasticsearch:
condition: service_healthy
ports:
- "8050:8050"
volumes:
- ./settings/indexing-service:/spring/indexing-service/config
networks:
- dps
metastore:
image: ${PREFIX4DOCKER}/metastore2:${METASTORE_VERSION}
container_name: metastore.docker
hostname: metastore.docker
environment:
- HOSTNAMES=metastore.docker
- REPO_SEARCH_ENABLED=true
- REPO_MESSAGING_ENABLED=true
- REPO_MESSAGING_USERNAME=${RABBIT_MQ_USER}
- REPO_MESSAGING_PASSWORD=${RABBIT_MQ_PASSWORD}
- MANAGEMENT_HEALTH_RABBIT_ENABLED=true
- REPO_AUTH_ENABLED=${REPO_AUTH_ENABLED}
- REPO_AUTH_JWTSECRET=${JWT_SECRET}
depends_on:
rabbitmq:
condition: service_started
elasticsearch:
condition: service_healthy
ports:
- "8040:8040"
volumes:
- ./settings/metastore:/spring/metastore2/config
networks:
- dps
networks:
dps:
ipam:
config:
- subnet: 172.0.0.0/24