Overview
Install prerequisites
This project has been created for (Linux/MacOS).
Requisites:
Check if docker-compose is already installed by entering the following command:
which docker-compose
On Ubuntu and Debian these are available in the meta-package build-essential. On other distributions, you may need to install the GNU C++ compiler separately.
sudo apt install build-essential
This project uses the following ports:
| Server | Port |
|---|---|
| MySQL database server | 3306 |
| PHPMyAdmin | 8080 |
| Nginx web server | 80 |
| Game server | 53595 |
Clone the project
Install Git, then clone the project:
git clone https://github.com/Marwolf/Open-RSC-Docker.git
Go to the project directory:
cd Open-RSC-Docker
Run the application
-
Perform first time setup and start the Docker application:
sudo make firstPlease wait this might take a several minutes...
sudo make logs # Follow log output -
Open your favorite browser:
- http://localhost
- http://localhost:8080 PHPMyAdmin (username: root, password: root)
-
Backup your databases:
sudo make backup -
Restore your databases:
sudo make restore -
Get help:
sudo make help -
Stop the application:
sudo make stop -
Start the application:
sudo make start -
Restart the application:
sudo make restart
Additional commands
| Name | Description |
|---|---|
| first | Perform first time setup and start containers |
| clone | Clone the git repository folders |
| pull | Get the latest git repository updates |
| start | Create and start containers |
| stop | Stop all containers |
| restart | Restart all containers |
| logs | Display log output |
| import | Import all databases from git repositories |
| backup | Create backup of all local databases |
| restore | Restore backup of all local databases |
| flush | Delete local git repository folders |
Optional: configure Nginx With SSL Certificates
You can change the host name by editing the .env file.
If you modify the host name, do not forget to add it to the /etc/hosts file.
-
Configure Nginx:
Do not modify the
Website/etc/nginx/default.conffile, it is overwritten byWebsite/etc/nginx/default.template.confEdit nginx file
Website/etc/nginx/default.template.confand uncomment the SSL server section :# server { # server_name ${NGINX_HOST}; # # listen 443 ssl; # fastcgi_param HTTPS on; # ... # } -
Copy your server.pem and server.key files in to the
Website/etc/nginx/sslfolder and restart the application. (Lets Encrypt can register SSL certs for free)sudo make restart