Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ services:
- "5000:5000"
volumes:
- registry-data:/var/lib/registry
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:5001/debug/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped

victoria-logs:
Expand Down Expand Up @@ -55,6 +60,12 @@ services:
- "8288:8288"
- "8289:8289"
command: inngest dev -u http://host.docker.internal:3000/api/inngest
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8288/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped

volumes:
Expand Down
4 changes: 2 additions & 2 deletions deployment/compose.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ services:
- "traefik.http.routers.registry.tls.certresolver=letsencrypt"
- "traefik.http.services.registry.loadbalancer.server.port=5000"
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:5000/v2/ || exit 1"]
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:5001/debug/health"]
interval: 30s
timeout: 10s
retries: 3
Expand Down Expand Up @@ -165,7 +165,7 @@ services:
- "--sdk-url"
- "http://web:3000/api/inngest"
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:8288/ || exit 1"]
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8288/health"]
interval: 30s
timeout: 10s
retries: 3
Expand Down
4 changes: 2 additions & 2 deletions deployment/compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ services:
- "traefik.http.routers.registry.tls.certresolver=letsencrypt"
- "traefik.http.services.registry.loadbalancer.server.port=5000"
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:5000/v2/ || exit 1"]
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:5001/debug/health"]
interval: 30s
timeout: 10s
retries: 3
Expand Down Expand Up @@ -147,7 +147,7 @@ services:
- "--sdk-url"
- "http://web:3000/api/inngest"
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:8288/ || exit 1"]
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8288/health"]
interval: 30s
timeout: 10s
retries: 3
Expand Down
4 changes: 2 additions & 2 deletions registry/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM registry:2

RUN apk add --no-cache apache2-utils
RUN apk add --no-cache apache2-utils curl

COPY config.yml /etc/docker/registry/config.yml
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 5000
EXPOSE 5000 5001

ENTRYPOINT ["/entrypoint.sh"]
2 changes: 2 additions & 0 deletions registry/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ storage:

http:
addr: :5000
debug:
addr: :5001
headers:
X-Content-Type-Options: [nosniff]

Expand Down
Loading