I have to admit this is sort of a Docker question, but I’m unable to set up volume mapping and am hoping someone might have some insights and that it might be generally useful to document this somewhere. I’m using the omeka/omeka
image and my composer file is below. My experience with Docker is limited but typically something like this (see volumes
line below) would give me direct access to the application in my working directory.
docker-compose.yml:
version: '2'
services:
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: omeka
MYSQL_DATABASE: omeka
MYSQL_USER: omeka
MYSQL_PASSWORD: omeka
db_admin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- db:db
ports:
- "8080:80"
omeka:
depends_on:
- db
build: ./
image: omeka/omeka
volumes:
- ./:/var/www/html ### THIS!!!
ports:
- "80:80"
restart: always
commands
docker pull omeka/omeka
docker-compose up -d