-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.53 KB
/
docker-compose.yml
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
version: '3.1'
services:
# adb:
# build:
# context: .
# privileged: true
# # command: ["adb", "-a", "-d", "start-server"]
# command: ["tail", "--follow", "/dev/null"]
# volumes:
# - /dev/bus/usb:/dev/bus/usb
# - .:/app:delegated
# - expo:/app/.expo
# - node_modules:/app/node_modules
# environment:
# - ANDROID_ADB_SERVER_PORT=5037
node:
build:
context: .
# The following command Keeps the container running in the background, see
# https://stackoverflow.com/questions/38546755/docker-compose-keep-container-running/55953120#55953120
# You then enter it via `make shell` and run commands like `npm run start`.
command: ["tail", "--follow", "/dev/null"]
# command: ["npm", "run", "android"]
# command: ["npm", "run", "web"]
privileged: true
ports:
- 9090:9090
- 3000:3000
- 9001:9001
- 8081:8081
- 19000:19000
- 19002:19002
- 19006:19006
volumes:
- .:/app:delegated
- /dev/bus/usb:/dev/bus/usb
- expo:/app/.expo
- node_modules:/app/node_modules
- npm_global:/home/node/.npm-global/
environment:
# For details on `REACT_NATIVE_PACKAGER_HOSTNAME` see
# https://github.com/kerbe/docker-expo#usage-of-this-docker-container
- REACT_NATIVE_PACKAGER_HOSTNAME=${HOST_IP_ADDRESS}
# - ANDROID_ADB_SERVER_HOST=adb
# - ANDROID_ADB_SERVER_PORT=5037
# extra_hosts:
# - host.docker.internal:host-gateway
volumes:
expo:
node_modules:
npm_global: