Conversation
|
@sumanthratna I've got to be doing something wrong, aren't I? This is the end result of |
|
Update: Docker secrets don't work with Compose, apparently. From Docker's own documentation:
Am I supposed to be using Swarm? |
@smayya337 yeah that's expected; it's because we need to add the secrets as
I think that's referring to external docker secrets; we should be able to use secrets with Compose as long as the secrets point to plaintext files. https://docs.docker.com/engine/swarm/secrets/#use-secrets-in-compose |
|
@sumanthratna ah, I see. The current issue for me is that I'm getting a |
yeah I had that error too which is why I handed this PR off to you lol @smayya337 do you get that error with the dev config? or is it just the prod config? |
|
Got it on dev - haven't tested prod yet. I'll look into it some more tomorrow; maybe I'm just too tired at the moment. |
|
@smayya337 any chance you can take another look at this? |
|
Looking at it now - the cause of the |
|
@sumanthratna yeah, I honestly don't know why it's refusing to read the files... is there a meaningful advantage to doing it this way? To me, it looks similarly insecure to the old |
IIRC the security benefits are:
let's leave this PR on hold; if it becomes too outdated with |
poetry run python manage.py createsecretsshould workdocker-compose -f docker-compose.yml -f docker-compose.dev.yml up --force-recreate --buildshould workdocker-compose -f docker-compose.yml -f docker-compose.prod.yml up --force-recreate --buildshould workstart_livescriptcloses #38