Skip to content

Commit

Permalink
fix(openchallenges): configure OC apex to run on port 8000 again (ARC…
Browse files Browse the repository at this point in the history
…H-371) (#2948)
  • Loading branch information
tschaffter authored Dec 16, 2024
1 parent 74b1219 commit 5681e28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/openchallenges/apex/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:80 {
:8000 {
handle_path /api-docs* {
reverse_proxy {env.API_DOCS_HOST}:{env.API_DOCS_PORT}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/openchallenges/apex/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ FROM caddy:2.8.4
RUN apk add --no-cache curl jq

HEALTHCHECK --interval=2s --timeout=3s --retries=20 --start-period=5s \
CMD curl --fail --silent "localhost:80/health" | jq '.status' | grep healthy || exit 1
CMD curl --fail --silent "localhost:8000/health" | jq '.status' | grep healthy || exit 1

COPY Caddyfile /etc/caddy/
6 changes: 3 additions & 3 deletions docker/openchallenges/services/apex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ services:
restart: always
env_file:
- ../../../apps/openchallenges/apex/.env
volumes:
- ../../../apps/openchallenges/apex/Caddyfile:/etc/caddy/Caddyfile
# volumes:
# - ../../../apps/openchallenges/apex/Caddyfile:/etc/caddy/Caddyfile
networks:
- openchallenges
ports:
- '8000:80'
- '8000:8000'
depends_on:
openchallenges-api-docs:
condition: service_healthy
Expand Down

0 comments on commit 5681e28

Please sign in to comment.