Skip to content

Commit 5e03a07

Browse files
authored
Added docker directions
Please let me know if the MySQL8 part works. It should.
1 parent a20cfe6 commit 5e03a07

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Readme.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,49 @@ follow [these instructions](Addons/NetworkZones/Readme.md).
114114

115115
### 13. Hit play and enjoy
116116

117+
# Docker instructions
118+
119+
### 1. Download and Install Docker
120+
121+
Depending on the operating system you want to use follow these directions: https://docs.docker.com/install/
122+
123+
Note: According to the MySQL Docker help page you cannot set the value 'MYSQL_HOST=localhost' as it casues issue. So far I have not had an issue leaving it out of the configuration.
124+
125+
### 2. Create MySQL container (if MySQL version 7 or earlier)
126+
127+
```
128+
docker run --name mysql \
129+
-p 3306:3306 \
130+
--restart always \
131+
-v /docker/mysql/datadir:/var/lib/mysql \
132+
-e MYSQL_ROOT_PASSWORD=CHANGEMEPLEASE \
133+
-e MYSQL_DATABASE=ummorpg \
134+
-e MYSQL_USER=ummorpg \
135+
-e MYSQL_PASSWORD=db_password \
136+
-d mysql:5.7.24 \
137+
--character-set-server=utf8mb4 \
138+
--collation-server=utf8mb4_unicode_ci
139+
```
140+
141+
### 3. Create MySQL container (if MySQL 8 or later) THIS IS UNTESTED AT THIS TIME.
142+
143+
```
144+
docker run --name mysql \
145+
-p 3306:3306 \
146+
--restart always \
147+
-v /docker/mysql/datadir:/var/lib/mysql \
148+
-e MYSQL_ROOT_PASSWORD=CHANGEMEPLEASE \
149+
-e MYSQL_DATABASE=ummorpg \
150+
-e MYSQL_USER=ummorpg \
151+
-e MYSQL_PASSWORD=db_password \
152+
-d mysql:latest \
153+
--character-set-server=utf8mb4 \
154+
--collation-server=utf8mb4_unicode_ci \
155+
--default-authentication-plugin=mysql_native_password
156+
```
157+
158+
### 4. For more information about MySQL in Docker please see this page: https://hub.docker.com/_/mysql/
159+
117160
# Troubleshooting
118161
Many addons add their own tables and columns.
119162
They will need to be modified to work with mysql.

0 commit comments

Comments
 (0)