-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (80 loc) · 1.94 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
version: '3'
services:
app:
build: .
ports:
- "${APPLICATION_HTTP_PORT}:8080"
- "${APPLICATION_GRPC_PORT}:8082"
- "5000:5000"
volumes:
- ${APPLICATION}:/go/src/github.com/duhruh/blog
command: ["go", "run", "cmd/task/main.go", "server", "--watch=true", "--http=:5000"]
tty: true
networks:
- frontend
- backend
# filebeat:
# build:
# context: ./docker/filebeat
# dockerfile: Dockerfile
# volumes:
# - ./docker/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
# - ./logs:/mnt/log
# - ./docker/filebeat/filebeat.template.json:/usr/share/filebeat/my.template.json
# tty: true
# networks:
# - backend
#
# kibana:
# image: docker.elastic.co/kibana/kibana:5.6.2
# ports:
# - "${KIBANA_HTTP_PORT}:5601"
# depends_on:
# - elasticsearch
# networks:
# - frontend
# - backend
#
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:5.6.2
# volumes:
# - elasticsearch-data:/usr/share/elasticsearch/data
# - elasticsearch-plugins:/usr/share/elasticsearch/plugins
# environment:
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# ports:
# - "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
# - "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
# networks:
# - frontend
# - backend
mysql:
image: mysql
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- ${DATA_SAVE_PATH}/mysql:/var/lib/mysql
ports:
- "${MYSQL_PORT}:3306"
networks:
- backend
networks:
frontend:
driver: "bridge"
backend:
driver: "bridge"
volumes:
mysql:
driver: "local"
elasticsearch-data:
driver: "local"
elasticsearch-plugins:
driver: "local"