Commit 276f64e6 authored by remy's avatar remy
Browse files

switch back to a working version in docker-compose for redhat-like distros

parent 76ae5378
......@@ -46,4 +46,5 @@ sudo docker-compose up --build
# you can login as "admin" with password w1c0Pa5s
```
Your database will be located in `.docker/db/wicopa`. If you want to use absolute paths instead, you will need to add `:z` option to your volumes in the docker-compose file, if you run it on RedHat-like distros, due to some selinux problems [See here for more informations](https://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/).
Your database will be located in `.docker/db/wicopa`.
Note: the `:z` option on your volumes in the docker-compose file is needed if you run it on RedHat-like distros, due to some selinux problems [See here for more informations](https://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/).
......@@ -15,8 +15,8 @@ services:
restart: always
container_name: wicopadb
volumes:
- ./.docker/db/wicopa:/var/lib/mysql
- ./wicopa.sql:/docker-entrypoint-initdb.d/wicopa.sql
- ./.docker/db/wicopa:/var/lib/mysql:z
- ./wicopa.sql:/docker-entrypoint-initdb.d/wicopa.sql:z
environment:
MYSQL_ROOT_PASSWORD: w1c0Pa5s
MYSQL_DATABASE: wicopa
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment