Minimal Docker images required for single player deployment
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,7 +1,10 @@
|
||||
MYSQL_DUMPS_DIR=./data/db
|
||||
|
||||
start: init
|
||||
docker-compose up -d --remove-orphans
|
||||
start:
|
||||
docker-compose -f docker-compose.yml up --force-recreate --remove-orphans --detach
|
||||
|
||||
start-single-player:
|
||||
docker-compose -f docker-compose-single-player.yml up --force-recreate --remove-orphans --detach
|
||||
|
||||
stop:
|
||||
@docker-compose down -v
|
||||
|
||||
@@ -459,7 +459,7 @@ if [ "$choice" == "1" ]; then
|
||||
echo ""
|
||||
sudo make stop
|
||||
echo ""
|
||||
sudo make start
|
||||
sudo make start-single-player
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Fetching the Game from the Open RSC git repo."
|
||||
|
||||
@@ -185,11 +185,6 @@ echo:
|
||||
make stop
|
||||
echo:
|
||||
echo:
|
||||
echo Starting Docker containers and downloading what is needed. This may take a while the first time.
|
||||
echo:
|
||||
make start
|
||||
echo:
|
||||
echo:
|
||||
|
||||
:edition
|
||||
echo:
|
||||
@@ -213,6 +208,12 @@ goto edition
|
||||
|
||||
:game
|
||||
echo:
|
||||
echo Starting Docker containers and downloading what is needed. This may take a while the first time.
|
||||
echo:
|
||||
make stop
|
||||
make start-single-player
|
||||
echo:
|
||||
echo:
|
||||
echo Downloading a copy of the Game repository
|
||||
echo:
|
||||
make clone-windows-game
|
||||
@@ -229,6 +230,12 @@ goto final
|
||||
|
||||
:gameweb
|
||||
echo:
|
||||
echo Starting Docker containers and downloading what is needed. This may take a while the first time.
|
||||
echo:
|
||||
make stop
|
||||
make start
|
||||
echo:
|
||||
echo:
|
||||
echo Downloading a copy of the Website repository
|
||||
echo:
|
||||
make clone-windows-website
|
||||
|
||||
29
docker-compose-single-player.yml
Normal file
29
docker-compose-single-player.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
version: '3.1'
|
||||
services:
|
||||
|
||||
myadmin:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
container_name: phpmyadmin
|
||||
ports:
|
||||
- "9000:80"
|
||||
environment:
|
||||
- PMA_ARBITRARY=1
|
||||
- PMA_HOST=mysql
|
||||
restart: always
|
||||
depends_on:
|
||||
- mysqldb
|
||||
|
||||
mysqldb:
|
||||
image: mariadb:10.3.8
|
||||
container_name: mysql
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_DATABASE=test
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_USER=dev
|
||||
- MYSQL_PASSWORD=dev
|
||||
ports:
|
||||
- "127.0.0.1:3306:3306"
|
||||
volumes:
|
||||
- "./data/db/mysql:/var/lib/mysql"
|
||||
- "./etc/mariadb/innodb-fix.cnf:/etc/mysql/conf.d/innodb-fix.cnf"
|
||||
Reference in New Issue
Block a user