Codex is a web server comic book browser and reader.
Here are some example snippets to help you get started creating a container from this image.
docker create \
--name=codex \
-p 9810:9810 \
-e PUID=501 \
-e PGID=20 \
-v /host/path/to/config:/config \
-v /host/path/to/comics:/comics \
--restart unless-stopped \
ghcr.io/ajslater/codexservices:
codex:
image: ghcr.io/ajslater/codex
container_name: codex
env_file: .env
volumes:
- /host/path/to/config:/config
- /host/path/to/comics:/comics:ro
ports:
- "9810:9810"
restart: on-failure
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9810/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15sNote: The
compose.yamlexample mounts/comicsread-only (:ro), which is safe for browsing. But editing tags writes back to your comic files, so to use tag editing you must remove the:roflag and make sure the container user (PUID/PGID) has write permission to the comics. Thedockerexample above already mounts/comicswritable.
Special volume setup for a CIFS share:
services:
my-service:
volumes:
- nas-share:/container-path
volumes:
nas-share:
driver_opts:
type: cifs
o: "username=[username],password=[password]"
device: //my-nas-network-name/sharePUID: Sets the UID for the default user on startupPGID: Sets the GID for the default user on startup
Refer to the Environment Variable Docs for codex environment variables.
Shell access whilst the container is running:
docker exec -it codex /bin/bashMonitor the logs of the container in realtime:
docker logs -f codexContainer version number
docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.version" }}' codexImage version number
docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.version" }}' ajslater/codex