-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (32 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
45 lines (32 loc) · 1.25 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
name: cpp-dev-prj
services:
cpp-dev-srv:
image: cpp-dev:latest
build:
context: .
dockerfile: Dockerfile
container_name: cpp-dev-cont
environment:
- WORK_DIR=/workspace
- CURR_USR=cppuser
user: cppuser # non-root user
volumes:
- ./data:/workspace/data # mount the current data directory to WORKDIR/data in the container
- ./scripts:/workspace/scripts # mount the current scripts directory to WORKDIR/scripts in the container
cap_add:
- SYS_PTRACE # for gdb, remove if in production
security_opt:
- seccomp:unconfined # for gdb, remove if in production
stdin_open: true # -i (interactive)
tty: true # -t (pseudo-TTY)
extra_hosts:
- "host.docker.internal:host-gateway"
command: /bin/bash -c "echo 'cpp-dev service is running.
If your terminal is stuck, press CTRL+C and use \"docker compose up -d\"
to launch this service in background (detached mode).' &&
echo 'Then, to link again to this service use \"docker compose exec cpp-dev /bin/bash\".' &&
tail -f /dev/null"
restart: unless-stopped
networks:
default:
name: cpp-dev-net