forked from oridungjeol/duckhang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (63 loc) · 1.52 KB
/
docker-compose.yaml
File metadata and controls
69 lines (63 loc) · 1.52 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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: mysql-duckhang
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "${MYSQL_HOST_PORT}:${MYSQL_PORT}"
volumes:
- mysql_data:/var/lib/mysql
redis:
image: redis:latest
container_name: redis
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- ./redis/data:/data
restart: always
command: ["redis-server", "--appendonly", "yes"]
elasticsearch:
build:
context: ./elasticsearch
args:
ELK_VERSION: 8.12.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=${ES_JAVA_OPTS}
ports:
- "${ELASTIC_PORT}:9200"
- "9300:9300"
volumes:
- esdata:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:9200 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
kibana:
image: docker.elastic.co/kibana/kibana:8.12.2
container_name: kibana
ports:
- "${KIBANA_PORT}:5601"
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
depends_on:
- elasticsearch
nginx:
image: nginx:latest
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes:
mysql_data:
esdata: