Commit 601d0f6c authored by remy's avatar remy
Browse files

update without the need of :z option in volumes for docker-compose. Indeed,...

update without the need of :z option in volumes for docker-compose. Indeed, now using relative paths.
parent 2ba3fb0a
......@@ -41,11 +41,9 @@ git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git
wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz
gunzip -d wicopa.sql.gz
sudo mkdir -p /data/mysql/wicopa
sudo docker-compose up --build
# you can access to it at http://127.0.0.1:8000
# you can login as "admin" with password w1c0Pa5s
```
Note that due to selinux problem on some RedHat-like distros, I added the `z` option to the volumes on the docker-compose file. [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`. 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/).
......@@ -15,8 +15,8 @@ services:
restart: always
container_name: wicopadb
volumes:
- ./.docker/db/wicopa:/var/lib/mysql:z
- ./wicopa.sql:/docker-entrypoint-initdb.d/wicopa.sql:z
- ./.docker/db/wicopa:/var/lib/mysql
- ./wicopa.sql:/docker-entrypoint-initdb.d/wicopa.sql
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