Minimal Docker images required for single player deployment

This commit is contained in:
Marwolf
2018-08-10 21:39:27 -04:00
parent 62173da050
commit e0e8d09c81
4 changed files with 47 additions and 8 deletions

View File

@@ -1,7 +1,10 @@
MYSQL_DUMPS_DIR=./data/db MYSQL_DUMPS_DIR=./data/db
start: init start:
docker-compose up -d --remove-orphans 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: stop:
@docker-compose down -v @docker-compose down -v

View File

@@ -459,7 +459,7 @@ if [ "$choice" == "1" ]; then
echo "" echo ""
sudo make stop sudo make stop
echo "" echo ""
sudo make start sudo make start-single-player
echo "" echo ""
echo "" echo ""
echo "Fetching the Game from the Open RSC git repo." echo "Fetching the Game from the Open RSC git repo."

View File

@@ -185,11 +185,6 @@ echo:
make stop make stop
echo: echo:
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 :edition
echo: echo:
@@ -213,6 +208,12 @@ goto edition
:game :game
echo: 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 Downloading a copy of the Game repository
echo: echo:
make clone-windows-game make clone-windows-game
@@ -229,6 +230,12 @@ goto final
:gameweb :gameweb
echo: 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 Downloading a copy of the Website repository
echo: echo:
make clone-windows-website make clone-windows-website

View 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"