I have the following set up
Build options:
--link dokku.postgres.xsacdb-database:dokku-postgres-xsacdb-database
-v /storage/xsacdb/conf:/app/conf
-v /storage/xsacdb/media:/app/media
Deploy options:
--link dokku.postgres.xsacdb-database:dokku-postgres-xsacdb-database
-v /storage/xsacdb/conf:/app/conf
-v /storage/xsacdb/media:/app/media
Run options:
--link dokku.postgres.xsacdb-database:dokku-postgres-xsacdb-database
-v /storage/xsacdb/conf:/app/conf
-v /storage/xsacdb/media:/app/media
However when pushing and triggering a build these directories are not accessible.
ls: cannot access /app/conf: No such file or directory
ls: cannot access /app/media: No such file or directory
They are available once the container is built
dokku run xsacdb bash
$ ls /app/conf
files here!
My Dockerfile
Edit
In addition the DATABASE_URL
environment variable set my the postgres plugin is also not available at build time.