-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
89 lines (84 loc) · 1.97 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
version: "3.8"
services:
web:
image: nginx:latest
volumes:
- ./deploy/config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./deploy/config/https.conf:/etc/nginx/conf.d/https.conf
- ./client/build:/usr/share/nginx/html
- ../store.woowa.work:/store.woowa.work
depends_on:
- app
ports:
- '80:80'
- '443:443'
app:
build:
context: .
dockerfile: deploy/docker/Dockerfile
depends_on:
- db
environment:
TZ: "Asia/Seoul"
working_dir: /app
networks:
default:
aliases:
- app
db:
image: mysql:8.0.26
environment:
MYSQL_DATABASE: "store"
MYSQL_USER: "woowa"
MYSQL_PASSWORD: "woowa"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
TZ: "Asia/Seoul"
cap_add:
- SYS_NICE
# volumes:
# - ./deploy/data/mysql:/var/lib/mysql
networks:
default:
aliases:
- db
elasticsearch:
build:
context: ./elk/elasticsearch/
args:
ELK_VERSION: 7.14.0
volumes:
- type: bind
source: ./elk/elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
discovery.type: single-node
TZ: "Asia/Seoul"
logstash:
build:
context: ./elk/logstash/
args:
ELK_VERSION: 7.14.0
links:
- 'elasticsearch'
volumes:
- type: bind
source: ./elk/logstash/config/logstash.yml
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: ./elk/logstash/pipeline
target: /usr/share/logstash/pipeline
read_only: true
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
TZ: "Asia/Seoul"
depends_on:
- elasticsearch
- db
volumes:
elasticsearch: