Skip to content

Commit a6949da

Browse files
itg-davewurstbrot
authored andcommitted
feat(docker): add compose.yaml
1 parent d09012c commit a6949da

2 files changed

Lines changed: 20 additions & 18 deletions

File tree

README.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -97,28 +97,16 @@ This approach also allows teams to perform self-assessment with changes tracked
9797
You can also track everything in a repository with a `docker compose` setup.
9898

9999
1. Ensure all files you want to track are present (`model.yaml`, `meta.yaml`, etc.).
100-
2. Create the compose.yaml. For example:
101-
```yaml
102-
# compose.yaml
103-
services:
104-
dsomm:
105-
image: wurstbrot/dsomm:latest
106-
container_name: dsomm
107-
ports:
108-
- "8080:8080"
109-
volumes:
110-
# uncomment the following line to add a modified meta.yaml (see: https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel#teams-and-groups)
111-
# - ./meta.yaml:/srv/assets/YAML/meta.yaml
112-
- ./model.yaml:/srv/assets/YAML/default/model.yaml
113-
- ./team-evidence.yaml:/srv/assets/YAML/team-evidence.yaml
114-
- ./team-progress.yaml:/srv/assets/YAML/team-progress.yaml
115-
# add other files if needed
100+
2. Copy the upstream compose.yaml:
101+
```bash
102+
wget https://raw.githubusercontent.com/devsecopsmaturitymodel/DevSecOps-MaturityModel/refs/heads/main/compose.yaml
116103
```
117-
3. Start the service:
104+
3. Edit the file if necessary.
105+
4. Start the service:
118106
```bash
119107
docker compose up -d
120108
```
121-
4. Stop the service and delete the container:
109+
5. Stop the service and delete the container:
122110
```bash
123111
docker compose down
124112
```

compose.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
services:
2+
dsomm:
3+
image: wurstbrot/dsomm:latest
4+
container_name: dsomm
5+
ports:
6+
- "8080:8080"
7+
volumes:
8+
## uncomment the following line to add a modified meta.yaml
9+
## (see: https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel#teams-and-groups)
10+
# - ./meta.yaml:/srv/assets/YAML/meta.yaml
11+
- ./model.yaml:/srv/assets/YAML/default/model.yaml
12+
- ./team-evidence.yaml:/srv/assets/YAML/team-evidence.yaml
13+
- ./team-progress.yaml:/srv/assets/YAML/team-progress.yaml
14+
## add other files if needed

0 commit comments

Comments
 (0)