Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use new SEEDS_FROM_URL to get seed #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- ./env/gateway.env
- ./env/shared.env
healthcheck:
test: curl --fail http://localhost:3001/ui || exit 1
test: curl --fail http://localhost:3001/token/ui || exit 1
interval: 20s
timeout: 1s
retries: 5
Expand All @@ -43,14 +43,26 @@ services:
depends_on:
gateway:
condition: service_healthy
media:
media-1:
image: ghcr.io/8xff/atm0s-media-server:master
network_mode: "host"
command: ["media"]
labels:
- "com.centurylinklabs.watchtower.enable=true"
env_file:
- ./env/media.env
- ./env/media-1.env
- ./env/shared.env
depends_on:
gateway:
condition: service_healthy
media-2:
image: ghcr.io/8xff/atm0s-media-server:master
network_mode: "host"
command: ["media"]
labels:
- "com.centurylinklabs.watchtower.enable=true"
env_file:
- ./env/media-2.env
- ./env/shared.env
depends_on:
gateway:
Expand Down
2 changes: 1 addition & 1 deletion env/connector.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ RUST_LOG=info
SDN_PORT=10020
SDN_ZONE_ID=0
SDN_ZONE_NODE_ID=20
SEEDS="10@/ip4/127.0.0.1/udp/10010"
SEEDS_FROM_URL="http://localhost:8080/api/cluster/seeds?zone_id=0&node_type=Connector"
2 changes: 1 addition & 1 deletion env/gateway.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ SDN_ZONE_ID=0
SDN_ZONE_NODE_ID=10
HTTP_PORT=3001
RTPENGINE_CMD_ADDR=127.0.0.1:22222
SEEDS="0@/ip4/127.0.0.1/udp/10000"
SEEDS_FROM_URL="http://localhost:8080/api/cluster/seeds?zone_id=0&node_type=Gateway"
5 changes: 5 additions & 0 deletions env/media-1.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RUST_LOG=info
SDN_PORT=10100
SDN_ZONE_ID=0
SDN_ZONE_NODE_ID=100
SEEDS_FROM_URL="http://localhost:8080/api/cluster/seeds?zone_id=0&node_type=Media"
5 changes: 5 additions & 0 deletions env/media-2.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RUST_LOG=info
SDN_PORT=10101
SDN_ZONE_ID=0
SDN_ZONE_NODE_ID=101
SEEDS_FROM_URL="http://localhost:8080/api/cluster/seeds?zone_id=0&node_type=Media"
5 changes: 0 additions & 5 deletions env/media.env

This file was deleted.