Use the docker-compose.yml
as template
You must provide these environment variables
- API_ENDPOINT: Your server host
http://server.com
- FIREBASE_DATABASE_URL: Your firebase database url
Pass your serviceAccount.json
as volume to /app/serviceAccount.json
. Ex: ./serviceAccount.json:/app/serviceAccount.json
Then run docker-compose up -d
curl -X POST http://server.com/:client_id -H "Content-Type:application/json" --data '{"url":"https://google.com", "token": "custom-token-if-required"}'
Response
{"id":"joq5kd7qo7","url":"http://server.com/joq5kd7qo7"}