Skip to content

Commit ced6a0f

Browse files
committed
README: Remove reference to mysql 5 as redmine dropped support for it
1 parent fc76f8a commit ced6a0f

File tree

1 file changed

+1
-62
lines changed

1 file changed

+1
-62
lines changed

README.md

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -207,20 +207,6 @@ Redmine uses a database backend to store its data.
207207

208208
The internal mysql server has been removed from the image. Please use a linked [mysql](#linking-to-mysql-container) or [postgresql](#linking-to-postgresql-container) container instead or connect with an external [mysql](#external-mysql-server) or [postgresql](#external-postgresql-server) server.
209209

210-
If you have been using the internal mysql server follow these instructions to migrate to a linked mysql container:
211-
212-
Assuming that your mysql data is available at `/srv/docker/redmine/mysql`
213-
214-
```bash
215-
docker run --name=mysql-redmine -d \
216-
--volume=/srv/docker/redmine/mysql:/var/lib/mysql \
217-
sameersbn/mysql:5.7.22-1
218-
```
219-
220-
This will start a mysql container with your existing mysql data. Now login to the mysql container and create a user for the existing `redmine_production` database.
221-
222-
All you need to do now is link this mysql container to the redmine container using the `--link=mysql-redmine:mysql` option and provide the `DB_NAME`, `DB_USER` and `DB_PASS` parameters.
223-
224210
Refer to [Linking to MySQL Container](#linking-to-mysql-container) for more information.
225211

226212
#### External MySQL Server
@@ -252,54 +238,7 @@ This will initialize the redmine database and after a couple of minutes your red
252238

253239
#### Linking to MySQL Container
254240

255-
You can link this image with a mysql container for the database requirements. The alias of the mysql server container should be set to **mysql** while linking with the redmine image.
256-
257-
If a mysql container is linked, only the `DB_ADAPTER`, `DB_HOST` and `DB_PORT` settings are automatically retrieved using the linkage. You may still need to set other database connection parameters such as the `DB_NAME`, `DB_USER`, `DB_PASS` and so on.
258-
259-
To illustrate linking with a mysql container, we will use the [sameersbn/mysql](https://github.com/sameersbn/docker-mysql) image. When using docker-mysql in production you should mount a volume for the mysql data store. Please refer the [README](https://github.com/sameersbn/docker-mysql/blob/master/README.md) of docker-mysql for details.
260-
261-
First, lets pull the mysql image from the docker index.
262-
263-
```bash
264-
docker pull sameersbn/mysql:5.7.22-1
265-
```
266-
267-
For data persistence lets create a store for the mysql and start the container.
268-
269-
SELinux users are also required to change the security context of the mount point so that it plays nicely with selinux.
270-
271-
```bash
272-
mkdir -p /srv/docker/redmine/mysql
273-
sudo chcon -Rt svirt_sandbox_file_t /srv/docker/redmine/mysql
274-
```
275-
276-
The run command looks like this.
277-
278-
```bash
279-
docker run --name=mysql-redmine -d \
280-
--env='DB_NAME=redmine_production' \
281-
--env='DB_USER=redmine' --env='DB_PASS=password' \
282-
--volume=/srv/docker/redmine/mysql:/var/lib/mysql \
283-
sameersbn/mysql:5.7.22-1
284-
```
285-
286-
The above command will create a database named `redmine_production` and also create a user named `redmine` with the password `password` with full/remote access to the `redmine_production` database.
287-
288-
We are now ready to start the redmine application.
289-
290-
```bash
291-
docker run --name=redmine -it --rm --link=mysql-redmine:mysql \
292-
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
293-
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
294-
sameersbn/redmine:6.0.4-1
295-
```
296-
297-
Here the image will also automatically fetch the `DB_NAME`, `DB_USER` and `DB_PASS` variables from the mysql container as they are specified in the `docker run` command for the mysql container. This is made possible using the magic of docker links and works with the following images:
298-
299-
- [mysql](https://hub.docker.com/_/mysql/)
300-
- [sameersbn/mysql](https://quay.io/repository/sameersbn/mysql/)
301-
- [centurylink/mysql](https://hub.docker.com/r/centurylink/mysql/)
302-
- [orchardup/mysql](https://hub.docker.com/r/orchardup/mysql/)
241+
See [example docker-compose-mysql.yml](docker-compose-mysql.yml).
303242

304243
### PostgreSQL
305244

0 commit comments

Comments
 (0)