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

View File

@@ -1,9 +1,13 @@
# Docker support, thanks to xinyifly
FROM openjdk:7-alpine
FROM openjdk:8u171-jdk-alpine
RUN apk -U add tini
WORKDIR /mnt
COPY ./ ./
RUN sh ./posix-compile.sh
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.6.0/wait /wait
RUN chmod +x /wait
EXPOSE 8484 7575 7576 7577
CMD exec tini -- sh ./posix-launch.sh
ENTRYPOINT ["tini", "--"]
CMD /wait && sh ./posix-launch.sh

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