-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compose] Use Docker secrets #51
base: main
Are you sure you want to change the base?
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 createsecrets
should workdocker-compose -f docker-compose.yml -f docker-compose.dev.yml up --force-recreate --build
should workdocker-compose -f docker-compose.yml -f docker-compose.prod.yml up --force-recreate --build
should workstart_live
scriptcloses #38