-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.28 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
services:
mysql:
image: mysql:8.0
container_name: moonlight-database
environment:
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_PORT: ${MYSQL_PORT}
MYSQL_NAME: ${MYSQL_NAME}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "${MYSQL_PORT}:3306"
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
server:
build:
context: .
dockerfile: Server/Dockerfile
container_name: moonlight-server
depends_on:
- mysql
environment:
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_PORT: ${MYSQL_PORT}
MYSQL_NAME: ${MYSQL_NAME}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "${LOGIN_PORT}:8484"
- "${SERVER_PORT}:8483"
- "8585:8585"
- "8586:8586"
- "8587:8587"
- "8588:8588"
- "8589:8589"
- "8590:8590"
- "8591:8591"
- "8592:8592"
- "8593:8593"
- "8594:8594"
volumes:
- ./scripts:/app/scripts
- ./logs:/app/logs
- ./Server/wz:/app/Server/wz
volumes:
mysql_data: