Skip to content

Commit

Permalink
Docker files for centrifugo included
Browse files Browse the repository at this point in the history
  • Loading branch information
Rethakgetse-Manaka committed Aug 5, 2024
1 parent e2c88ef commit e2cce6e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
1 change: 0 additions & 1 deletion occupi-backend/centrifugo
Submodule centrifugo deleted from 60d374
12 changes: 12 additions & 0 deletions occupi-backend/counter/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"token_hmac_secret_key": "0afc8c43-497c-4bec-a996-c756208fb64f",
"admin_password": "7a56dd50-8ba9-42de-901f-c1223c10f334",
"admin_secret": "736a4fd4-cac7-4080-86d7-469c7b0bea60",
"api_key": "8c18e01e-c8f8-480b-af08-8a52b34f1569",
"namespaces": [
{
"name": "public",
"anonymous": true
}
]
}
14 changes: 14 additions & 0 deletions occupi-backend/counter/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.9"
services:
centrifugo:
container_name: centrifugo
image: centrifugo/centrifugo:v5
volumes:
- ./config.json:/centrifugo/config.json
command: centrifugo -c config.json
ports:
- 8000:8000
ulimits:
nofile:
soft: 262144
hard: 262144
2 changes: 1 addition & 1 deletion occupi-backend/pkg/handlers/realtime_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
func init() {
client = gocent.New(gocent.Config{
Addr: "http://localhost:8000/api", // Replace with your Centrifugo API address
Key: "c336846e-9e4f-4614-8fb7-a85a47e214b3", // Replace with your Centrifugo API key
Key: "8c18e01e-c8f8-480b-af08-8a52b34f1569", // Replace with your Centrifugo API key
})
}

Expand Down

0 comments on commit e2cce6e

Please sign in to comment.