-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (35 loc) · 880 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (35 loc) · 880 Bytes
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
version: "2.4"
services:
app:
container_name: "application-server"
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- .:/workspace:cached
- work:/config:cached
# mount Host machine's docker.sock to container's docker.sock
- /var/run/docker.sock:/var/run/docker.sock
# mount Host machine's /etc/group to container's /etc/host-group
- /etc/group:/etc/host-group
# mount Host machine's default docker config dir to container's abc user docker config dir
- /etc/docker:/config/.docker
ports:
- "8443:8443"
environment:
USER: "abc"
DEFAULT_WORKSPACE: "/config"
networks:
- app-network
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
security_opt:
- apparmor:unconfined
networks:
app-network:
external: true
volumes:
work: