Add docker-compose support (#545)

This commit is contained in:
DevilTea
2019-11-27 15:06:01 -08:00
committed by Ronan Lana
parent bb586a7c0b
commit 06b43d9e07
2 changed files with 26 additions and 2 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: '3'
services:
maplestory:
network_mode: "host"
build: .
depends_on:
- db
environment:
WAIT_HOSTS: localhost:3306
db:
network_mode: "host"
image: mysql:5.6
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "heavenms"
MYSQL_USER: "root"
MYSQL_PASSWORD: ""
volumes:
- ./sql:/docker-entrypoint-initdb.d