mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Hardcode them to:
SYNC_PORT=8080
SYNC_BASE=/anki_data
If these env variables are passed into the container with different values,
they are ignored.
The reasons is if the user modifies SYNC_BASE they risk data loss since
anki-sync-server will no longer write data into the volume. If they change
SYNC_PORT they need to also change it when mapping this internal port to the
external port of the container, which could be confusing plus it has no benefit
to allow this since it's always possible to change the external port even if
the internal port is fixed to 8080 (e.g. `-p 1234:8080`).
In both cases there is no benefit to making these values configurable and there
are risks associated.
Unfortunately there is no easy way of implementing this for the
Dockerfile.distroless so it's up to the user not to modify these values.
|
||
|---|---|---|
| .. | ||
| docker | ||
| syncserver | ||
| architecture.md | ||
| build.md | ||
| contributing.md | ||
| development.md | ||
| editing.md | ||
| linux.md | ||
| mac.md | ||
| ninja.md | ||
| protobuf.md | ||
| windows.md | ||