-
-
Notifications
You must be signed in to change notification settings - Fork 398
Open
Description
Potentially helping docker related issues #741 and #523
Repo Linking
There are several links under different usernames/repos. I'm not sure how mantainers want to manaage this but it would help with docker issues if there could be one official repo that's linked everywhere and also published on on Docker Hub under this name also.
- "https://github.com/stringer-rss/stringer/" links to "https://github.com/swanson/stringer" under the repos about section.
- The docker docs reference "stringer-rss/stringer" (presumably expanding to "docker.io/stringer-rss/stringer")
- The docker-compose file references "mockdeep/stringer" (presumably expanding to "docker.io/mockdeep/stringer")
Compose Tweaks
Fixes and improvement suggestion plus support rootless containers, (podman, podman-compose), if you're happy with these suggestions I'll submit PR. These tweaks make the docker docs accurate also.
services:
stringer-postgres:
image: docker.io/postgres:9.5-alpine # full registry paths for non-docker compatibility/verbosity
container_name: stringer-postgres # helps with podman-compose
restart: unless-stopped
volumes:
- stringer:/var/lib/postgresql/data # use volume rather than mount point
environment:
- PUID=1000 # perms issues for the old ~/ vol mount
- PGID=1000
- POSTGRES_USER=db_user
- POSTGRES_DB=stringer
- POSTGRES_PASSWORD=super_secret_password # TODO change me
stringer:
image: docker.io/mockdeep/stringer # maybe stringer-rss/stringer? # full registry paths for non-docker compatibility/verbosity
container_name: stringer # helps with podman-compose
depends_on:
- stringer-postgres
restart: unless-stopped
ports:
- 8080:8080 # not on privileged port for rootless
environment:
- PORT=8080
- DATABASE_URL=postgres://db_user:super_secret_password@stringer-postgres:5432/stringer # TODO change me
# - SECRET_KEY_BASE=<your configuration> # TODO change me
# - ENCRYPTION_PRIMARY_KEY<your configuration> # TODO change me
# - ENCRYPTION_DETERMINISTIC_KEY=<your configuration> # TODO change me
# - ENCRYPTION_KEY_DERIVATION_SALT=<your configuration> # TODO change me
Container suggestions
- can we migrate to alpine/chainguard base image? Image is currently >1GB.
- can the DATABASE_URL be generated with other env vars to make the config dryer? maybe using docker-compose env file.
- can we get an explanation about the new encryption env vars rather than just commit msg? maybe on main README or in this compose
Metadata
Metadata
Assignees
Labels
No labels