mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2024-12-22 05:02:58 -05:00
harden docker
This commit is contained in:
parent
c58c7e13f1
commit
0a71d0a94b
1 changed files with 17 additions and 5 deletions
|
@ -1,10 +1,22 @@
|
||||||
version: "3.9"
|
version: "3.7"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
backend:
|
safetwitch-backend:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
#image: codeberg.org/dragongoose/safetwitch-backend:latest
|
||||||
|
restart: always
|
||||||
|
container_name: safetwitch-backend
|
||||||
|
hostname: safetwitch-backend
|
||||||
|
user: 65534:65534
|
||||||
|
read_only: true
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
ports:
|
ports:
|
||||||
- "7000:8080"
|
- "127.0.0.1:7100:7000"
|
||||||
environment:
|
environment:
|
||||||
- URL=http://localhost:7000
|
- PORT=7000
|
||||||
|
- URL=https://changethis
|
Loading…
Reference in a new issue