diff --git a/docker-compose.yml b/docker-compose.yml index 7dd7222..d159279 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,3 +13,9 @@ services: timeout: 10s retries: 3 start_period: 15s + networks: + - broccoli-net + +networks: + broccoli-net: + name: broccoli-net diff --git a/settings-site/docker-compose.yml b/settings-site/docker-compose.yml index 991a412..e523286 100644 --- a/settings-site/docker-compose.yml +++ b/settings-site/docker-compose.yml @@ -6,8 +6,10 @@ services: env_file: ../.env ports: - "100.114.205.53:12752:12752" - network_mode: host - # network_mode: host is needed so the settings site can reach - # 127.0.0.1:12753 (the bot's internal API). If running both as - # Docker containers on the same host, use a shared Docker network - # instead and reference the bot container by name. + networks: + - broccoli-net + +networks: + broccoli-net: + name: broccoli-net + external: true