Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit c26ca45

Browse files
authored
Use CANASTA_IMAGE environment variable for web service image (#73)
Change the web service image from a hardcoded registry reference to use an environment variable with a default fallback: image: ${CANASTA_IMAGE:-ghcr.io/canastawiki/canasta:latest} This allows the Canasta CLI to override the image when building from local source with the --build-from flag. The CLI sets CANASTA_IMAGE in the .env file to point to the locally built image (e.g., canasta:local). When CANASTA_IMAGE is not set, the default behavior remains unchanged, pulling from the GitHub Container Registry.
1 parent 5c751bd commit c26ca45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
- ./my.cnf:/etc/my.cnf
2323

2424
web:
25-
image: ghcr.io/canastawiki/canasta:latest
25+
image: ${CANASTA_IMAGE:-ghcr.io/canastawiki/canasta:latest}
2626
restart: unless-stopped
2727
extra_hosts:
2828
- "gateway.docker.internal:host-gateway"

0 commit comments

Comments
 (0)