Skip to content

Commit

Permalink
Uodated configuration commands for centrifugo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rethakgetse-Manaka committed Sep 5, 2024
1 parent a2a345d commit 190eac4
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 17 deletions.
Binary file added occupi-backend/configs/centrifugo.config.json.gpg
Binary file not shown.
2 changes: 0 additions & 2 deletions occupi-backend/configs/config.json.gpg

This file was deleted.

Binary file modified occupi-backend/configs/config.yaml.gpg
Binary file not shown.
Binary file modified occupi-backend/configs/dev.deployed.yaml.gpg
Binary file not shown.
Binary file modified occupi-backend/configs/dev.localhost.yaml.gpg
Binary file not shown.
Binary file modified occupi-backend/configs/prod.yaml.gpg
Binary file not shown.
Binary file modified occupi-backend/configs/test.yaml.gpg
Binary file not shown.
7 changes: 3 additions & 4 deletions occupi-backend/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ services:
image: centrifugo/centrifugo:v5
container_name: centrifugo-dev
volumes:
- ./configs/config.json:/centrifugo/config.json
- ./configs/centrifugo.config.json:/centrifugo/centrifugo.config.json
- centrifugo-dev:/centrifugo/data
command: centrifugo -c config.json
command: centrifugo -c centrifugo.config.json
ports:
- 8001:8000
ulimits:
Expand Down Expand Up @@ -84,5 +84,4 @@ volumes:

networks:
webnet:
external: true

external: true
4 changes: 2 additions & 2 deletions occupi-backend/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ services:
image: centrifugo/centrifugo:v5
container_name: centrifugo-dev-local-local
volumes:
- ./configs/config.json:/centrifugo/config.json
- ./configs/centrifugo.config.json:/centrifugo/centrifugo.config.json
- centrifugo-dev-local-local:/centrifugo/data
command: centrifugo -c config.json
command: centrifugo -c centrifugo.config.json
ports:
- 8001:8000
ulimits:
Expand Down
6 changes: 3 additions & 3 deletions occupi-backend/docker-compose.localdev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ services:
image: centrifugo/centrifugo:v5
container_name: centrifugo-dev-local
volumes:
- ./configs/config.json:/centrifugo/config.json
- ./configs/centrifugo.config.json:/centrifugo/centrifugo.config.json
- centrifugo-dev-local:/centrifugo/data
command: centrifugo -c config.json
command: centrifugo -c centrifugo.config.json
ports:
- 8000:8000
ulimits:
Expand Down Expand Up @@ -66,4 +66,4 @@ services:
volumes:
rabbitmq-dev-local:
centrifugo-dev-local:
redis-dev-local:
redis-dev-local:
6 changes: 3 additions & 3 deletions occupi-backend/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ services:
image: centrifugo/centrifugo:v5
container_name: centrifugo-prod
volumes:
- ./configs/config.json:/centrifugo/config.json
- ./centrifugo.config.json:/centrifugo/centrifugo.config.json
- centrifugo-prod:/centrifugo/data
command: centrifugo -c config.json --health
command: centrifugo -c centrifugo.config.json --health
ports:
- 8000:8000
ulimits:
Expand Down Expand Up @@ -84,4 +84,4 @@ volumes:

networks:
webnet:
external: true
external: true
4 changes: 2 additions & 2 deletions occupi-backend/scripts/decrypt_env_variables.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the files to be decrypted
files=("config.yaml.gpg" "dev.deployed.yaml.gpg" "dev.localhost.yaml.gpg" "prod.yaml.gpg" "test.yaml.gpg" "config.json.gpg")
files=("config.yaml.gpg" "dev.deployed.yaml.gpg" "dev.localhost.yaml.gpg" "prod.yaml.gpg" "test.yaml.gpg" "centrifugo.config.json.gpg")

# cd to configs directory
cd ../configs
Expand All @@ -24,4 +24,4 @@ for file in "${files[@]}"; do
echo "File $file does not exist."
exit 1
fi
done
done
2 changes: 1 addition & 1 deletion occupi-backend/scripts/encrypt_env_variables.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the files to be encrypted
files=("config.yaml" "dev.deployed.yaml" "dev.localhost.yaml" "dev.localhost.yaml" "prod.yaml" "test.yaml" "config.json")
files=("config.yaml" "dev.deployed.yaml" "dev.localhost.yaml" "dev.localhost.yaml" "prod.yaml" "test.yaml" "centrifugo.config.json")

# cd to configs directory
cd ../configs
Expand Down

0 comments on commit 190eac4

Please sign in to comment.