-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yml
99 lines (91 loc) · 2.02 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
90
91
92
93
94
95
96
97
98
99
version: '3.7'
services:
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --init-file /docker-entrypoint-initdb.d/init.sql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: muonline
volumes:
- ./mysql-data:/var/lib/mysql
- ./.docker-files/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- mu
connectserver:
build:
context: ./ConnectServer
dockerfile: ./Dockerfile
restart: always
ports:
- "44405:44405"
- "55557:55557/udp"
volumes:
- ./ssl:/ssl
networks:
- mu
joinserver:
build:
context: ./JoinServer
dockerfile: ./Dockerfile
restart: always
depends_on:
- mysql
ports:
- "55970:55970"
environment:
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: root
networks:
- mu
web-admin:
build:
context: ./WebServer/mu-web-admin
dockerfile: ./Dockerfile
restart: always
ports:
- "3000:3000"
networks:
- mu
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0
container_name: elasticsearch
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- node.name=elasticsearch
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- xpack.security.enabled=false
- xpack.security.transport.ssl.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
networks:
- mu
socketserver:
build:
context: ./WebServer/mu-socket-server
dockerfile: ./Dockerfile
restart: always
ports:
- "44404:44404"
volumes:
- ./WebServer/mu-socket-server:/app
networks:
- mu
networks:
mu:
driver: bridge
volumes:
esdata: