forked from growlf/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (39 loc) · 1.01 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
version: '3.8'
services:
# Building and testing environment
dev:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/growlf/toolbox:latest
environment:
- TESTVAR=${TESTVAR:-app}
stdin_open: true
tty: true
command: ["/bin/zsh"]
volumes:
- ${HOME}/.gitconfig:/home/ubuntu/.gitconfig
- ${HOME}/.ssh:/home/ubuntu/.ssh
- ${PWD}:/app
- /var/run/docker.sock:/var/run/docker.sock
network_mode: "host"
# Example container with DooD and host file/net access
app1:
image: ghcr.io/growlf/toolbox:latest
environment:
- TESTVAR=${TESTVAR:-app2}
stdin_open: true
tty: true
command: ["/bin/zsh"]
volumes:
- /:/host
- /var/run/docker.sock:/var/run/docker.sock
network_mode: "host"
# Example of running the same image with different intent
app2:
image: ghcr.io/growlf/toolbox:latest
environment:
- TESTVAR=${TESTVAR:-app2}
stdin_open: true
tty: true
command: ["/bin/bash"]