Skip to content

Commit

Permalink
added mysql container
Browse files Browse the repository at this point in the history
  • Loading branch information
drwoops committed Jun 10, 2022
1 parent 8a68e19 commit 30028c5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/proxy/*
/server1/*
/server2/*
/mysql/*
docker-compose.override.yml
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ services:
ports:
- 25577:25577
stdin_open: true # docker run -i
tty: true # docker run -t
tty: true # docker run -t
mysql:
image: mysql
volumes:
- $PWD/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=TRUSTNO1
- MYSQL_DATABASE=minecraft
- MYSQL_USER=minecraft
- MYSQL_PASSWORD=trustno1
Empty file added mysql/.keep
Empty file.
7 changes: 4 additions & 3 deletions papermc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ARG JAVA_VERSION=17
FROM openjdk:${JAVA_VERSION}
ARG JAVA_VERSION
ARG VERSION=1.18.2
ARG BUILD=379
ARG VERSION=1.19
ARG BUILD=experimental-4
ARG PROJECT_URL=https://api.papermc.io/v2/projects/paper
ARG JAR=paper-${VERSION}-${BUILD}.jar
ARG DOWNLOAD_URL=${PROJECT_URL}/versions/${VERSION}/builds/${BUILD}/downloads/${JAR}
#ARG DOWNLOAD_URL=${PROJECT_URL}/versions/${VERSION}/builds/${BUILD}/downloads/${JAR}
ARG DOWNLOAD_URL=https://files.eim.one/${JAR}
RUN mkdir -p /srv/paper/data
WORKDIR /srv/paper
ADD start.sh start.sh
Expand Down
6 changes: 3 additions & 3 deletions reset.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
rm -rf server1 server2 proxy
mkdir server1 server2 proxy
touch server1/.keep server2/.keep proxy/.keep
rm -rf server1 server2 proxy mysql
mkdir server1 server2 proxy mysql
touch server1/.keep server2/.keep proxy/.keep mysql/.keep

0 comments on commit 30028c5

Please sign in to comment.