You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.8 KiB
YAML
96 lines
3.8 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
db:
|
|
image: "mariadb:bionic"
|
|
container_name: "rathena_db"
|
|
ports:
|
|
- "3306:3306" # allow DB connections from host
|
|
volumes:
|
|
- "rathenadb:/var/lib/mysql" # save database to local disk
|
|
- "../../sql-files/:/docker-entrypoint-initdb.d" # initialize db with ./sql-files
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ragnarok
|
|
MYSQL_DATABASE: ragnarok
|
|
MYSQL_USER: ragnarok
|
|
MYSQL_PASSWORD: ragnarok
|
|
|
|
builder:
|
|
image: "rathena:local"
|
|
container_name: "rathena-builder"
|
|
command: "/rathena/tools/docker/builder.sh"
|
|
volumes:
|
|
- "../..:/rathena" # mount git repo directory inside container
|
|
- "./asset/inter_conf.txt:/rathena/conf/import/inter_conf.txt" # load db connection
|
|
- "./asset/char_conf.txt:/rathena/conf/import/char_conf.txt" #localdev login-char relation
|
|
- "./asset/map_conf.txt:/rathena/conf/import/map_conf.txt" #localdev char-map relation
|
|
init: true # helps with signal forwarding and process reaping
|
|
tty: true
|
|
stdin_open: true
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
BUILDER_CONFIGURE: "--enable-packetver=20211103"
|
|
|
|
login:
|
|
image: "rathena:local"
|
|
container_name: "rathena-login"
|
|
command: sh -c "/bin/wait-for db:3306 -- /rathena/login-server"
|
|
ports:
|
|
- "6900:6900" # login server
|
|
volumes:
|
|
- "../..:/rathena" # mount git repo directory inside container
|
|
- "./asset/inter_conf.txt:/rathena/conf/import/inter_conf.txt" # load db connection
|
|
- "./asset/char_conf.txt:/rathena/conf/import/char_conf.txt" #localdev login-char relation
|
|
- "./asset/map_conf.txt:/rathena/conf/import/map_conf.txt" #localdev char-map relation
|
|
init: true # helps with signal forwarding and process reaping
|
|
tty: true
|
|
stdin_open: true
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- db
|
|
char:
|
|
image: "rathena:local"
|
|
container_name: "rathena-char"
|
|
command: sh -c "/bin/wait-for db:3306 -- /rathena/char-server"
|
|
ports:
|
|
- "6121:6121" # char server
|
|
volumes:
|
|
- "../..:/rathena" # mount git repo directory inside container
|
|
- "./asset/inter_conf.txt:/rathena/conf/import/inter_conf.txt" # load db connection
|
|
- "./asset/char_conf.txt:/rathena/conf/import/char_conf.txt" #localdev login-char relation
|
|
- "./asset/map_conf.txt:/rathena/conf/import/map_conf.txt" #localdev char-map relation
|
|
init: true # helps with signal forwarding and process reaping
|
|
tty: true
|
|
stdin_open: true
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- login
|
|
map:
|
|
image: "rathena:local"
|
|
container_name: "rathena-map"
|
|
command: sh -c "/bin/wait-for db:3306 -- /rathena/map-server"
|
|
ports:
|
|
- "5121:5121" # map server
|
|
volumes:
|
|
- "../..:/rathena" # mount git repo directory inside container
|
|
- "./asset/inter_conf.txt:/rathena/conf/import/inter_conf.txt" # load db connection
|
|
- "./asset/char_conf.txt:/rathena/conf/import/char_conf.txt" #localdev login-char relation
|
|
- "./asset/map_conf.txt:/rathena/conf/import/map_conf.txt" #localdev char-map relation
|
|
init: true # helps with signal forwarding and process reaping
|
|
tty: true
|
|
stdin_open: true
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- char
|
|
|
|
volumes:
|
|
rathenadb:
|