Skip to content

Commit d298647

Browse files
author
patched.codes[bot]
committed
Patched docker-compose.yml
1 parent 4395e7e commit d298647

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ services:
99
- POSTGRES_DB=postgres
1010
- POSTGRES_USER=postgres
1111
- POSTGRES_PASSWORD=postgres
12+
security_opt:
13+
- no-new-privileges:true
14+
read_only: true
1215
web:
1316
build: .
1417
image: pygoat/pygoat
@@ -20,10 +23,17 @@ services:
2023
depends_on:
2124
- migration
2225
- db
26+
security_opt:
27+
- no-new-privileges:true
28+
read_only: true
2329
migration:
2430
image: pygoat/pygoat
2531
command: python pygoat/manage.py migrate --noinput
2632
volumes:
2733
- .:/app
2834
depends_on:
2935
- db
36+
security_opt:
37+
- no-new-privileges:true
38+
read_only: true
39+

0 commit comments

Comments
 (0)