I’ve been trying to get to grips with Docker to set up a development environment on Windows that persists data across runs and I’ve so far failed completely. I also think that I have some really confused pre-conceived ideas about what I should be doing.
There seems to be so many opinions and completely different methods and version of yml to use, it’s all very confusing. And also very little in the way of people blogging about this from a Windows perspective.
I can get to the Wordpress install screen but I have no idea where these wordpress files actually are, so how would I get at these files for deployment? (I can’t deploy containers to my web host).
I can’t seem to get it to map to my windows directory H:\js2017\ui.
Also I cannot navigate to the phpMyAdmin page at all. The request doesn’t even time out, it seems the browser doesn’t even try the request which is odd.
I’ve got a yml file like this:
version: "2" services: my-wpdb: image: mysql:latest ports: - "9006:3306" volumes: - ./h:/js2017/data environment: MYSQL_ROOT_PASSWORD: wordpass my-wp: image: wordpress:latest volumes: - ./h:/js2017/ui ports: - "9007:80" links: - my-wpdb:mysql environment: WORDPRESS_DB_PASSWORD: wordpass WORDPRESS_DB_HOST: my-wpdb:3306 phpmyadmin: container_name: phpmyadmin image: phpmyadmin/phpmyadmin:latest restart: always environment: - PMA_ARBITRARY=1 ports: - "9008:81" links: - my-wpdb
How do I correctly map the host directories?
Why can I not see the phpmyAdmin page?
have I got the entire concept of Docker and persistent data/files wrong?
I’ve read a little around dedicated data volumes but it seem I can’t even get the simple stuff working at the moment so I’m rather lost at the moment.