-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-template.yml
52 lines (48 loc) · 1.01 KB
/
docker-compose-template.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
version: '3.8'
services:
backend:
image: backend:latest
environment:
- LOGSTASH_HOST_NAME=localhost
- LOGSTASH_HOST_PORT=50000
ports:
- 8080:8080
depends_on:
- mysql
volumes:
- log_datas:/logs
mysql:
image: mysql:8.0.32
container_name: art-mysql
platform: linux/amd64
volumes:
- db_datas:/var/lib/mysql
environment:
- MYSQL_DATABASE=art
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=changeme
- TZ= Asia/Seoul
ports:
- 13306:3306
redis:
image: redis:7.0-alpine
command: redis-server --port 6379
container_name: art-redis
labels:
- "name=redis"
- "mode=standalone"
ports:
- 16379:6379
filebeat:
image: docker.elastic.co/beats/filebeat:7.6.2
container_name: art-filebeat
volumes:
- ./filebeat-template.yml:/usr/share/filebeat/filebeat-template.yml
- log_datas:/logs
ports:
- 5044:5044
depends_on:
- backend
volumes:
db_datas:
log_datas: