I am wanting to deploy Authelia as part of my SWAG setup but am a little confused about what to include in docker-compose for Authelia.
I have visited your web page: Setting Up Authelia With SWAG . I have also checked Authelia’s “Lite” docker-compose example on GitHub. And, I have googled for user examples, too.
My first query relates to “user”. In your example, you use the user flag: user: "1000:1000"
.
- I presume this equates to PUID:PGID and should be replaced by my values for this?
- Authelia don’t use this flag in their example - is it necessary?
My second query is with ports. In some examples of docker-compose files I’ve viewed, the ports were declared:
ports:
- 9091:9091
Whereas, with Authelia’s “Lite” docker-compose example, they expose the port:
expose:
- 9091
And, in your example, you don’t declare or expose the ports. I’m unsure which option would best suit me. For reference, I am setting this up on a QNAP device, using docker-compose rather than Container Station.