A shameless ripoff from https://github.com/cmilanf/docker-rathena-fluxcp to create a docker image for Hercules FluxCP (https://github.com/HerculesWS/FluxCP).
Item images was taken from https://rathena.org/board/files/file/2509-item-images/
Sample docker image available on: https://hub.docker.com/r/dijedodol/fluxcp
To override the config/servers.php, mount your custom server.php file to /var/www/fluxcp/config/servers.override.php. Recursive array merge will be performed against the default config/servers.php, so you can just define config key that you want to replace.
The same mechanism can be used to override config on config/access.php and config/application.php. Other than these mentioned config files, you can just mount the whole file or directory from the host machine.
For example to change only the default server name from FluxRO to ExampleRO, create a new file servers.override.php with the following contents:
<?php
return array(
array(
'ServerName' => 'FluxRO'
)
);
?>Then mount the file using something like docker run --rm -v './servers.override.php:/var/www/fluxcp/config/servers.override.php' ...<this docker image>
This is an example MySQL definition in docker that has been tested to work with FluxCP.
services:
mysql:
image: mysql:5.7
command: --character-set-server=latin1 --collation-server=latin1_swedish_ci --sql_mode=NO_ZERO_DATE
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: <your-root-password>
MYSQL_DATABASE: ragnarok
MYSQL_USER: ragnarok
MYSQL_PASSWORD: ragnarok
volumes:
- ./data/mysql:/var/lib/mysql:rw