L2J in Docker

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Posts: 13
Joined: Wed May 05, 2010 8:30 pm

L2J in Docker

Post by ruke » Sat Oct 31, 2020 10:24 pm

Hello, this is not a tool per se but couldn't find a better section to publish it up.

This is a very simple repository to set up an L2J server using Docker, which, most of the time, makes things easier.
If you intend to use Windows, keep in mind Docker is garbage on it so consider using Linux (it works pretty well).

You can follow up the instructions from here https://github.com/Ruk33/l2j-docker/tree/master

You will need:
1 - Docker, https://www.docker.com/get-started
2 - Docker compose, https://docs.docker.com/compose/install/

What's the difference from https://hub.docker.com/r/l2jserver/l2j-server-docker?
Services are separated and not bundled together, which in theory, it should make it easier to have the servers distributed in separated machines (although this is just theory, I may be assuming too much, please correct me if I'm wrong)


User avatar
L2j Inner Circle
L2j Inner Circle
Posts: 7002
Joined: Tue Aug 11, 2009 3:36 am

Re: L2J in Docker

Post by Zoey76 » Sun Nov 08, 2020 1:09 am

Hello, as we understand different services shouldn't be bundle together, but we created a first docker implementation thinking that out community may not be familiar with Docker and this would be a good great step.

Anyway, great job!
Using Eclipse 4.21 - OpenJDK17 - MariaDB 10.6.3 - L2J Server


User avatar
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: L2J in Docker

Post by nonom » Mon Nov 23, 2020 10:02 pm

Docker in Windows is starting to be more lighter and fast with WSL2. Anyways it doesn't matters since I'm using it only for building images.

About your Dockerfiles, try to unify the RUN* commands in one. You should use only WORKDIR at the end, to move between directories is more fast with cd into the RUN pipeline. Where do you load the gameserver config?

The approach is not much different than what we have except you split the docker-compose.yml.

We are coding a starter cloud version so any feedback is welcome in the future.

By other side I like what you did with the cli container; doing the same for the cloud but in a different approach (one to many).

Keep up the good work!
"There are three kinds of people in this world, those who can count and those who can't"

Post Reply