Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Update readme.md #597

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 26 additions & 25 deletions security/apparmor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,31 +264,32 @@ In this step we'll show how a custom AppArmor profile could have protected Docke

```
$ cat docker-compose.yml
wordpress:
image: endophage/wordpress:lean
links:
- mysql
ports:
- "8080:80"
environment:
- DB_PASSWORD=2671d40f658f595f49cd585db8e522cc955d916ee92b67002adcf8127196e6b2
cpuset: "0"
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- DAC_OVERRIDE
- NET_BIND_SERVICE
# **YOUR WORK HERE**
# Add an apparmor profile to this image
mysql:
image: mariadb:10.1.10
environment:
- MYSQL_DATABASE=wordpress
- MYSQL_ROOT_PASSWORD=2671d40f658f595f49cd585db8e522cc955d916ee92b67002adcf8127196e6b2
ports:
- "3306"
services:
wordpress:
image: endophage/wordpress:lean
links:
- mysql
ports:
- "8080:80"
environment:
- DB_PASSWORD=2671d40f658f595f49cd585db8e522cc955d916ee92b67002adcf8127196e6b2
cpuset: "0"
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- DAC_OVERRIDE
- NET_BIND_SERVICE
# **YOUR WORK HERE**
# Add an apparmor profile to this image
mysql:
image: mariadb:10.1.10
environment:
- MYSQL_DATABASE=wordpress
- MYSQL_ROOT_PASSWORD=2671d40f658f595f49cd585db8e522cc955d916ee92b67002adcf8127196e6b2
ports:
- "3306"
```

You can see that the file is describing a WordPress application with two services:
Expand Down