Skip to content

Commit 75acf3c

Browse files
committed
Update ip adresses to use private sector
1 parent 1fd5a63 commit 75acf3c

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

docker-compose-dev.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ services:
88
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
99
networks:
1010
default:
11-
ipv4_address: 172.88.0.2
11+
ipv4_address: 172.19.0.2
1212
mongo2:
1313
image: mongo:6.0.10
1414
hostname: mongo2
1515
container_name: mongo2
1616
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
1717
networks:
1818
default:
19-
ipv4_address: 172.88.0.3
19+
ipv4_address: 172.19.0.3
2020
mongo3:
2121
image: mongo:6.0.10
2222
hostname: mongo3
2323
container_name: mongo3
2424
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
2525
networks:
2626
default:
27-
ipv4_address: 172.88.0.4
27+
ipv4_address: 172.19.0.4
2828
mongosetup:
2929
image: mongo:6.0.10
3030
depends_on:
@@ -34,7 +34,7 @@ services:
3434
volumes:
3535
- ./scripts/mongo_setup.sh:/scripts/mongo_setup.sh
3636
restart: "no"
37-
entrypoint: [ "bash", "/scripts/mongo_setup.sh"]
37+
entrypoint: ["bash", "/scripts/mongo_setup.sh"]
3838
adb:
3939
container_name: adb
4040
image: devicefarmer/adb:latest
@@ -44,12 +44,12 @@ services:
4444
privileged: true
4545
networks:
4646
default:
47-
ipv4_address: 172.88.0.6
47+
ipv4_address: 172.19.0.6
4848
networks:
4949
default:
5050
driver: bridge
5151
ipam:
5252
driver: default
5353
config:
54-
- subnet: 172.88.0.0/16
55-
gateway: 172.88.0.1
54+
- subnet: 172.19.0.0/16
55+
gateway: 172.19.0.1

docker-compose-prod.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ networks:
66
ipam:
77
driver: default
88
config:
9-
- subnet: 172.88.0.0/16
10-
gateway: 172.88.0.1
9+
- subnet: 172.19.0.0/16
10+
gateway: 172.19.0.1
1111

1212
services:
1313
nginx:
@@ -35,23 +35,23 @@ services:
3535
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
3636
networks:
3737
default:
38-
ipv4_address: 172.88.0.2
38+
ipv4_address: 172.19.0.2
3939
mongo2:
4040
image: mongo:6.0.10
4141
hostname: mongo2
4242
container_name: mongo2
4343
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
4444
networks:
4545
default:
46-
ipv4_address: 172.88.0.3
46+
ipv4_address: 172.19.0.3
4747
mongo3:
4848
image: mongo:6.0.10
4949
hostname: mongo3
5050
container_name: mongo3
5151
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
5252
networks:
5353
default:
54-
ipv4_address: 172.88.0.4
54+
ipv4_address: 172.19.0.4
5555
mongosetup:
5656
image: mongo:6.0.10
5757
container_name: mongosetup

docker-compose-test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
["mongod", "--replSet", "myReplicaSet", "--bind_ip", "localhost,mongo1"]
1010
networks:
1111
default:
12-
ipv4_address: 172.88.0.2
12+
ipv4_address: 172.19.0.2
1313
mongo2:
1414
image: mongo:6.0.10
1515
hostname: mongo2
@@ -18,7 +18,7 @@ services:
1818
["mongod", "--replSet", "myReplicaSet", "--bind_ip", "localhost,mongo2"]
1919
networks:
2020
default:
21-
ipv4_address: 172.88.0.3
21+
ipv4_address: 172.19.0.3
2222
mongo3:
2323
image: mongo:6.0.10
2424
hostname: mongo3
@@ -27,7 +27,7 @@ services:
2727
["mongod", "--replSet", "myReplicaSet", "--bind_ip", "localhost,mongo3"]
2828
networks:
2929
default:
30-
ipv4_address: 172.88.0.4
30+
ipv4_address: 172.19.0.4
3131
mongosetup:
3232
image: mongo:6.0.10
3333
depends_on:
@@ -47,7 +47,7 @@ services:
4747
privileged: true
4848
networks:
4949
default:
50-
ipv4_address: 172.88.0.6
50+
ipv4_address: 172.19.0.6
5151
devicehub:
5252
container_name: devicehub
5353
build: .
@@ -58,19 +58,19 @@ services:
5858
- "7400-7500:7400-7500"
5959
environment:
6060
- TZ='America/Los_Angeles'
61-
- MONGODB_PORT_27017_TCP=mongodb://172.88.0.2:27017
61+
- MONGODB_PORT_27017_TCP=mongodb://172.19.0.2:27017
6262
- STF_ADMIN_EMAIL='test@example.com'
6363
- STF_ADMIN_NAME='test admin'
6464
restart: unless-stopped
6565
command: stf local --adb-host adb --public-ip 0.0.0.0 --provider-min-port 7400 --provider-max-port 7500
6666
networks:
6767
default:
68-
ipv4_address: 172.88.0.5
68+
ipv4_address: 172.19.0.5
6969
networks:
7070
default:
7171
driver: bridge
7272
ipam:
7373
driver: default
7474
config:
75-
- subnet: 172.88.0.0/16
76-
gateway: 172.88.0.1
75+
- subnet: 172.19.0.0/16
76+
gateway: 172.19.0.1

scripts/mongo_setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#!/bin/bash
22
sleep 10
33

4-
mongosh --host 172.88.0.2:27017 <<EOF
4+
mongosh --host 172.19.0.2:27017 <<EOF
55
var cfg = {
66
"_id": "myReplicaSet",
77
"version": 1,
88
"members": [
99
{
1010
"_id": 0,
11-
"host": "172.88.0.2:27017",
11+
"host": "172.19.0.2:27017",
1212
"priority": 2
1313
},
1414
{
1515
"_id": 1,
16-
"host": "172.88.0.3:27017",
16+
"host": "172.19.0.3:27017",
1717
"priority": 0
1818
},
1919
{
2020
"_id": 2,
21-
"host": "172.88.0.4:27017",
21+
"host": "172.19.0.4:27017",
2222
"priority": 0
2323
}
2424
]

scripts/variables.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
STF_SECRET=nosecret
22
STF_URL=http://localhost:8082
3-
MONGODB_PORT_27017_TCP=mongodb://mongo1:27017
3+
MONGODB_PORT_27017_TCP=mongodb://172.19.0.2:27017
44
AUTH_TYPE=auth-mock
55
AUTH_URL=auth/mock/

0 commit comments

Comments
 (0)