forked from metin2/deploy
1
0
Fork 0
deploy/docker-compose.yml

96 lines
1.8 KiB
YAML
Raw Normal View History

2023-12-09 23:34:28 +02:00
version: '3.3'
services:
# MySQL Database
mysql:
image: mysql:5.5
restart: always
environment:
# Password for root access
MYSQL_ROOT_PASSWORD: 'metin2'
ports:
- '3306:3306'
expose:
- 3306
volumes:
- ./storage/database/:/var/lib/mysql/
# DBCache Server
db:
image: metin2/server:test
restart: always
expose:
- 15000
command: db
volumes:
- ./config/db.txt:/app/conf.txt
- ./storage/log/db/:/app/log/
# Auth server
auth:
image: metin2/server:test
restart: always
expose:
- 11000
- 12000
ports:
- '11000:11000'
command: game
volumes:
- ./config/auth.txt:/app/CONFIG
- ./storage/log/auth/:/app/log/
# Game server (CH1)
ch1_first:
image: metin2/server:test
restart: always
expose:
- 13000
- 14000
ports:
- '13000:13000'
command: game
volumes:
- ./config/ch1/first.txt:/app/CONFIG
- ./storage/log/ch1/first/:/app/log/
- ./storage/mark/:/app/mark/
ch1_game1:
image: metin2/server:test
restart: always
expose:
- 13001
- 14001
ports:
- '13001:13001'
command: game
volumes:
- ./config/ch1/game1.txt:/app/CONFIG
- ./storage/log/ch1/game1/:/app/log/
ch1_game2:
image: metin2/server:test
restart: always
expose:
- 13002
- 14002
ports:
- '13002:13002'
command: game
volumes:
- ./config/ch1/game2.txt:/app/CONFIG
- ./storage/log/ch1/game2/:/app/log/
# Game server (game99)
game99:
image: metin2/server:test
restart: always
expose:
- 13099
- 14099
ports:
- '13099:13099'
command: game
volumes:
- ./config/game99.txt:/app/CONFIG
- ./storage/log/game99/:/app/log/