Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (80 loc) · 1.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (80 loc) · 1.63 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
services:
back:
build: ./back
container_name: back
ports:
- "8080:8080"
restart: always
env_file:
- .env
environment:
TZ: Asia/Seoul
depends_on:
redis:
condition: service_healthy
elastic:
condition: service_healthy
networks:
- cocoa-net
front:
build: ./front
container_name: front
ports:
- "3000:3000"
restart: always
env_file:
- .env
environment:
TZ: Asia/Seoul
depends_on:
- back
networks:
- cocoa-net
redis:
image: redis:7-alpine
container_name: redis
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
retries: 5
start_period: 1s
timeout: 10s
restart: always
environment:
TZ: Asia/Seoul
expose:
- "6379"
volumes:
- redis-data:/data
networks:
- cocoa-net
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.3
container_name: elastic
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 5s
retries: 60
start_period: 5s
timeout: 10s
restart: always
environment:
discovery.type: single-node
TZ: Asia/Seoul
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
bootstrap.memory_lock: true
xpack.security.enabled: false
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: false
expose:
- "9200"
volumes:
- elastic-data:/usr/share/elasticsearch/data
networks:
- cocoa-net
networks:
cocoa-net:
driver: bridge
volumes:
redis-data:
elastic-data: