Mount the mandatory config files separately in docker-compose, since it's including the whole /app from host and therefore the copies made in Dockerfile aren't available.

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-19 21:44:43 +03:00
parent 85e104006c
commit 869bf2a9fd
2 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,9 @@ services:
DATABASE_USERNAME: root
DATABASE_PASSWORD_EMPTY: 1
volumes:
- ${VOLUME:-.:/app}:Z
- ${VOLUME:-.}:/app:Z
- ${VOLUME:-.}/config/database.docker.yml:/app/config/database.yml:Z
- ${VOLUME:-.}/config/site.docker.yml:/app/config/site.yml:Z
ports:
- 3000:3000
depends_on: