Closed cflipse closed 5 years ago
IT, umm ... should be noted that this config requires a set of keys configured in nested .env
files
It's late, I'll document what's needed in the morning.
So, this compose requires three .env files. Tree looks something like:
.env
development
web
database
storage
and hold shared ENV secrets.
POSTGRES_USER
, POSTGRES_PASS
and POSTGRES_DB
... there are fallbacks, for everything but pass, at the moment.DATABASE_HOST=database
... could probably get away with just setting that particular variable in the compose file, but it's a good hook.MINIO_ACCESS_KEY
and MINIO_SECRET_KEY
which I got by running the container on it's own, and copying the secrets it spit out for me: docker run it minio/minio server /data
Description
This is the baseline config of a docker-compose structure. A lot of this is preliminary, only roughly sketching that the parts of the network can talk to each other. The images build, and things talk to each other.
Parts of this are yoinked from Terrastories; other parts are pulled from the pragprog book
Docker for Rails Developers