Skip to content

Commit bca0180

Browse files
committed
Default compose to GHCR-hosted image with override hook
Self-hosters can now `docker compose pull && docker compose up` straight off ghcr.io/nickclyde/apollo-backend:latest. Devs working from source can pin a local tag with `APOLLO_IMAGE=apollo-backend:dev docker compose up --build`; the `build:` block is preserved for that path.
1 parent 2dab36b commit bca0180

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ x-worker: &worker
88
build:
99
context: .
1010
dockerfile: Dockerfile
11-
image: apollo-backend:dev
11+
image: ${APOLLO_IMAGE:-ghcr.io/nickclyde/apollo-backend:latest}
1212
<<: *app-env
1313
volumes: *app-volumes
1414
depends_on:
@@ -124,7 +124,7 @@ services:
124124
build:
125125
context: .
126126
dockerfile: Dockerfile
127-
image: apollo-backend:dev
127+
image: ${APOLLO_IMAGE:-ghcr.io/nickclyde/apollo-backend:latest}
128128
command: ["api"]
129129
<<: *app-env
130130
volumes: *app-volumes

0 commit comments

Comments
 (0)