-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.51 KB
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
version: '3.3'
services:
dev:
build:
context: .
args:
http_proxy: "$http_proxy"
https_proxy: "$https_proxy"
no_proxy: "$no_proxy"
COMPILE_THREADS: "$COMPILE_THREADS"
USER_NAME: "$USER_NAME"
USER_PASSWORD: "$USER_PASSWORD"
USER_ID: "$USER_ID"
USER_GID: "$USER_GID"
DOCKER_VERSION: "$DOCKER_VERSION"
DOCKER_GID: "$DOCKER_GID"
DOCKER_COMPOSE_VERSION: "$DOCKER_COMPOSE_VERSION"
JAVA_CANDIDATE: "$JAVA_CANDIDATE"
NVM_VERSION: "$NVM_VERSION"
NODE_VERSIONS: "$NODE_VERSIONS"
YVM_VERSION: "$YVM_VERSION"
YARN_VERSIONS: "$YARN_VERSIONS"
image: "$IMAGE_NAME"
stdin_open: true
tty: true
privileged: true
# give more space for chrome
shm_size: 1gb
environment:
DISPLAY: "$DISPLAY"
SSH_AUTH_SOCK: "$SSH_AUTH_SOCK"
DOCKER_HOST: "$DOCKER_HOST_IN_CONTAINER"
volumes:
# to display vsc, chrome
- "/tmp/.X11-unix:/tmp/.X11-unix"
# deploy android app
- "/dev/bus/usb:/dev/bus/usb"
# run docker commands
- "/var/run/docker.sock:/var/run/docker.sock"
# ssh agent
- "$SSH_AUTH_DIR:$SSH_AUTH_DIR"
- "ssh:/home/$USER_NAME/.ssh"
- "maven-m2:/home/$USER_NAME/.m2"
- "gradle-dot:/home/$USER_NAME/.gradle"
- "workspace:/home/$USER_NAME/workspace"
- "vscode_user:/home/$USER_NAME/.config/Code/User"
restart: unless-stopped
volumes:
workspace:
ssh:
vscode_user:
maven-m2:
gradle-dot: