Skip to content

gdesatrigraha/fluxcp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluxcp-docker

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

Config Override

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.

Example

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>

MySQL Docker Compose Example

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

About

Docker Image for Hercules FluxCP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published