Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
addefe79
Commit
addefe79
authored
Mar 12, 2026
by
ius
Browse files
fix: align docker health checks with runtime image
parent
b764d3b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
deploy/Dockerfile
View file @
addefe79
...
@@ -105,7 +105,7 @@ EXPOSE 8080
...
@@ -105,7 +105,7 @@ EXPOSE 8080
# Health check
# Health check
HEALTHCHECK
--interval=30s --timeout=10s --start-period=10s --retries=3 \
HEALTHCHECK
--interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD
curl -f
http://localhost:${SERVER_PORT:-8080}/health || exit 1
CMD
wget -q -T 5 -O /dev/null
http://localhost:${SERVER_PORT:-8080}/health || exit 1
# Run the application
# Run the application
ENTRYPOINT
["/app/sub2api"]
ENTRYPOINT
["/app/sub2api"]
deploy/docker-compose.local.yml
View file @
addefe79
...
@@ -154,7 +154,7 @@ services:
...
@@ -154,7 +154,7 @@ services:
networks
:
networks
:
-
sub2api-network
-
sub2api-network
healthcheck
:
healthcheck
:
test
:
[
"
CMD"
,
"
curl
"
,
"
-
f
"
,
"
http://localhost:8080/health"
]
test
:
[
"
CMD"
,
"
wget
"
,
"
-
q"
,
"
-T"
,
"
5"
,
"
-O"
,
"
/dev/null
"
,
"
http://localhost:8080/health"
]
interval
:
30s
interval
:
30s
timeout
:
10s
timeout
:
10s
retries
:
3
retries
:
3
...
...
deploy/docker-compose.standalone.yml
View file @
addefe79
...
@@ -94,7 +94,7 @@ services:
...
@@ -94,7 +94,7 @@ services:
-
GEMINI_CLI_OAUTH_CLIENT_SECRET=${GEMINI_CLI_OAUTH_CLIENT_SECRET:-}
-
GEMINI_CLI_OAUTH_CLIENT_SECRET=${GEMINI_CLI_OAUTH_CLIENT_SECRET:-}
-
ANTIGRAVITY_OAUTH_CLIENT_SECRET=${ANTIGRAVITY_OAUTH_CLIENT_SECRET:-}
-
ANTIGRAVITY_OAUTH_CLIENT_SECRET=${ANTIGRAVITY_OAUTH_CLIENT_SECRET:-}
healthcheck
:
healthcheck
:
test
:
[
"
CMD"
,
"
curl
"
,
"
-
f
"
,
"
http://localhost:8080/health"
]
test
:
[
"
CMD"
,
"
wget
"
,
"
-
q"
,
"
-T"
,
"
5"
,
"
-O"
,
"
/dev/null
"
,
"
http://localhost:8080/health"
]
interval
:
30s
interval
:
30s
timeout
:
10s
timeout
:
10s
retries
:
3
retries
:
3
...
...
deploy/docker-compose.yml
View file @
addefe79
...
@@ -146,7 +146,7 @@ services:
...
@@ -146,7 +146,7 @@ services:
networks
:
networks
:
-
sub2api-network
-
sub2api-network
healthcheck
:
healthcheck
:
test
:
[
"
CMD"
,
"
curl
"
,
"
-
f
"
,
"
http://localhost:8080/health"
]
test
:
[
"
CMD"
,
"
wget
"
,
"
-
q"
,
"
-T"
,
"
5"
,
"
-O"
,
"
/dev/null
"
,
"
http://localhost:8080/health"
]
interval
:
30s
interval
:
30s
timeout
:
10s
timeout
:
10s
retries
:
3
retries
:
3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment