style: lint code
This commit is contained in:
@@ -4,14 +4,14 @@ x-defaults: &defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
max-file: '3'
|
||||
|
||||
services:
|
||||
frpc:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}snowdreamtech/frpc:${FRPC_VERSION:-0.65.0}
|
||||
ports:
|
||||
- "${FRP_ADMIN_PORT:-7400}:${FRP_ADMIN_PORT:-7400}"
|
||||
- '${FRP_ADMIN_PORT:-7400}:${FRP_ADMIN_PORT:-7400}'
|
||||
volumes:
|
||||
- ./frpc.toml:/etc/frp/frpc.toml
|
||||
environment:
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
FRP_ADMIN_USER: ${FRP_ADMIN_USER:-admin}
|
||||
FRP_ADMIN_PASSWORD: ${FRP_ADMIN_PASSWORD:-password}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- 'host.docker.internal:host-gateway'
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
@@ -36,12 +36,11 @@ services:
|
||||
memory: ${FRPC_MEMORY_RESERVATION:-64M}
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"sh",
|
||||
"-c",
|
||||
"curl -f http://$${FRP_ADMIN_USER}:$${FRP_ADMIN_PASSWORD}@localhost:$${FRP_ADMIN_PORT}/api/status || exit 1",
|
||||
]
|
||||
- CMD
|
||||
- sh
|
||||
- -c
|
||||
- 'curl -f http://$${FRP_ADMIN_USER}:$${FRP_ADMIN_PASSWORD}@localhost:$${FRP_ADMIN_PORT}/api/status || exit 1'
|
||||
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user