Hi all,
I created a docker-compose file to make the images work taking an existing wordpress folder that is on my home.
Here is the docker-compose.yml
wordpress:
image: wordpresslinks:
- db:mysqlports:
- 8082:80environment:
WORDPRESS_DB_USER: testWORDPRESS_DB_PASSWORD: testWORDPRESS_DB_NAME: testvolumes:
- /home/tubia/test/:/var/www/htmldb:
image: mysqlenvironment:
MYSQL_ROOT_PASSWORD: exampleMYSQL_DATABASE: testMYSQL_USER: testMYSQL_PASSWORD: test
This results in the installation page, when I visit localhost:8082, so it is not taking the volume as configured. Also If I enter the container with docker exec -ti wp_container /bin/bash and ls the /var/www/html, it's a standard default wp installation, not the one I mapped with the volume.
Hints? It is the expected behaviour?
Hi all,
I created a docker-compose file to make the images work taking an existing wordpress folder that is on my home.
Here is the docker-compose.yml
This results in the installation page, when I visit
localhost:8082, so it is not taking the volume as configured. Also If I enter the container withdocker exec -ti wp_container /bin/bashandlsthe/var/www/html, it's a standard default wp installation, not the one I mapped with the volume.Hints? It is the expected behaviour?