forked from DeviceFarmer/stf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-test.yaml
76 lines (75 loc) · 1.85 KB
/
docker-compose-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
mongo1:
image: mongo:6.0.10
hostname: mongo1
container_name: mongo1
entrypoint:
["mongod", "--replSet", "myReplicaSet", "--bind_ip", "localhost,mongo1"]
networks:
default:
ipv4_address: 10.211.0.2
mongo2:
image: mongo:6.0.10
hostname: mongo2
container_name: mongo2
entrypoint:
["mongod", "--replSet", "myReplicaSet", "--bind_ip", "localhost,mongo2"]
networks:
default:
ipv4_address: 10.211.0.3
mongo3:
image: mongo:6.0.10
hostname: mongo3
container_name: mongo3
entrypoint:
["mongod", "--replSet", "myReplicaSet", "--bind_ip", "localhost,mongo3"]
networks:
default:
ipv4_address: 10.211.0.4
mongosetup:
image: mongo:6.0.10
depends_on:
- mongo1
- mongo2
- mongo3
volumes:
- ./scripts/mongo_setup.sh:/scripts/mongo_setup.sh
restart: "no"
entrypoint: ["bash", "/scripts/mongo_setup.sh"]
adb:
container_name: adb
image: devicefarmer/adb:latest
restart: unless-stopped
volumes:
- "/dev/bus/usb:/dev/bus/usb"
privileged: true
networks:
default:
ipv4_address: 10.211.0.6
devicehub:
container_name: devicehub
build: .
image: devicehub
ports:
- "7100:7100"
- "7110:7110"
- "7400-7500:7400-7500"
environment:
- TZ='America/Los_Angeles'
- MONGODB_PORT_27017_TCP=mongodb://10.211.0.2:27017
- STF_ADMIN_EMAIL='[email protected]'
- STF_ADMIN_NAME='test admin'
restart: unless-stopped
command: stf local --adb-host adb --public-ip 0.0.0.0 --provider-min-port 7400 --provider-max-port 7500
networks:
default:
ipv4_address: 10.211.0.5
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.211.0.0/16
gateway: 10.211.0.1