1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 20:19:47 +00:00
Files
pocket-id/scripts/docker-entrypoint.sh
2024-09-09 10:29:41 +02:00

16 lines
367 B
Bash

echo "Starting frontend..."
node frontend/build &
echo "Starting backend..."
cd backend && ./pocket-id-backend &
echo "Starting Caddy..."
# Check if TRUST_PROXY is set to true and use the appropriate Caddyfile
if [ "$TRUST_PROXY" = "true" ]; then
caddy start --config /etc/caddy/Caddyfile.trust-proxy &
else
caddy start --config /etc/caddy/Caddyfile &
fi
wait