feat(docker): add Firebase credentials volume to Docker Compose for OAuth integration
This commit is contained in:
parent
8a549504a4
commit
8b268640a5
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,4 +4,5 @@
|
|||||||
*.gocache
|
*.gocache
|
||||||
*.exe
|
*.exe
|
||||||
*/dist
|
*/dist
|
||||||
|
*/secrets
|
||||||
*/node_modules
|
*/node_modules
|
||||||
@ -25,8 +25,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
|||||||
FROM alpine:3.20
|
FROM alpine:3.20
|
||||||
# minimal tools for healthcheck + TLS roots + timezone
|
# minimal tools for healthcheck + TLS roots + timezone
|
||||||
RUN apk add --no-cache ca-certificates tzdata curl && \
|
RUN apk add --no-cache ca-certificates tzdata curl && \
|
||||||
adduser -D -H -u 10001 app
|
adduser -D -H -u 10001 app && \
|
||||||
|
mkdir -p /home/app && chown app:app /home/app
|
||||||
USER app
|
USER app
|
||||||
|
ENV HOME=/home/app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /out/server /app/server
|
COPY --from=builder /out/server /app/server
|
||||||
@ -37,4 +39,4 @@ EXPOSE 8082
|
|||||||
HEALTHCHECK --interval=15s --timeout=3s --retries=3 \
|
HEALTHCHECK --interval=15s --timeout=3s --retries=3 \
|
||||||
CMD curl -sf http://localhost:8082/healthz || exit 1
|
CMD curl -sf http://localhost:8082/healthz || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["/app/server"]
|
ENTRYPOINT ["/app/server"]
|
||||||
|
|||||||
@ -65,6 +65,8 @@ services:
|
|||||||
entrypoint: ["/app/migrate"]
|
entrypoint: ["/app/migrate"]
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
|
volumes:
|
||||||
|
- ./backend/secrets/firebase_credentials.json:/secrets/firebase_credentials.json:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -83,6 +85,8 @@ services:
|
|||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
expose:
|
expose:
|
||||||
- "8082"
|
- "8082"
|
||||||
|
volumes:
|
||||||
|
- ./backend/secrets/firebase_credentials.json:/secrets/firebase_credentials.json:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks: [internal]
|
networks: [internal]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user