4.0 KiB
Overview
Install prerequisites
This project has been created for (Windows, Linux, and OS X).
Requisites:
This project uses the following ports:
| Server | Port |
|---|---|
| MySQL database server | 3306 |
| PHPMyAdmin | 8080 |
| Nginx web server | 80 |
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
Important!
If you are using Windows, open Docker and make your drives available to your Docker containers:
Run the application
-
Perform first time setup and start the Docker application:
OS X/Linux: ./first-time-setup.shWindows: "First time setup.cmd"Please wait this might take a several minutes...
-
Open your favorite browser:
- http://localhost
- http://localhost:8080 PHPMyAdmin (username: root, password: root)
-
Backup your databases:
OS X/Linux: ./backup-database.shWindows: "Backup Databases.cmd" -
Restore your databases:
OS X/Linux: ./restore-database.shWindows: "Restore Databases.cmd" -
Stop the application:
OS X/Linux: ./stop.shWindows: "Stop Containers.cmd" -
Start the application:
OS X/Linux: ./start.shWindows: "Start Containers.cmd" -
Restart the application:
./restart.shWindows: "Restart Containers.cmd" -
View container logs:
./view-logs.sh
Windows: "View Container Logs.cmd"
- Pull repository updates:
./pull-updates.sh
Windows: "Pull Repository Updates.cmd"
Additional commands for troubleshooting use
| Name | Description |
|---|---|
| first | Perform first time setup |
| 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
