Skip to content

Commit

Permalink
Restrict capabilities of containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jandd committed Oct 11, 2022
1 parent 5e8a360 commit dce4daf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ services:
- "15432:5432"
env_file:
dev-env-db
read_only: true
volumes:
- "pg_data:/var/lib/postgresql/data"
- "./docker/db/dev/init-user-db.sql:/docker-entrypoint-initdb.d/init-user-db.sql"
- "/var/run/postgresql"
- "./docker/db/dev/init-user-db.sql:/docker-entrypoint-initdb.d/init-user-db.sql:ro"
cap_drop:
- ALL
cap_add:
- CAP_CHOWN
- CAP_DAC_READ_SEARCH
- CAP_FOWNER
- CAP_SETGID
- CAP_SETUID
app:
image: devdaydresden/devday_website_app:latest_dev
build:
Expand All @@ -35,6 +45,8 @@ services:
- "devday_static:/app/static"
tmpfs:
- /tmp
cap_drop:
- ALL
depends_on:
- db

Expand Down

0 comments on commit dce4daf

Please sign in to comment.