Update docker-compose.yml

This commit is contained in:
dragongoose 2023-12-13 23:16:56 +00:00
parent 703f957891
commit 990564e63b

View File

@ -4,18 +4,10 @@ services:
safetwitch-frontend: safetwitch-frontend:
container_name: safetwitch-frontend container_name: safetwitch-frontend
hostname: safetwitch-frontend hostname: safetwitch-frontend
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
restart: always restart: always
image: codeberg.org/safetwitch/safetwitch:latest image: codeberg.org/safetwitch/safetwitch:latest
ports: ports:
- "127.0.0.1:8280:80" - "127.0.0.1:8280:8280"
environment: environment:
- SAFETWITCH_BACKEND_DOMAIN=changeme - SAFETWITCH_BACKEND_DOMAIN=changeme
- SAFETWITCH_INSTANCE_DOMAIN=changeme - SAFETWITCH_INSTANCE_DOMAIN=changeme
@ -26,7 +18,6 @@ services:
safetwitch-backend: safetwitch-backend:
container_name: safetwitch-backend container_name: safetwitch-backend
hostname: safetwitch-backend hostname: safetwitch-backend
user: 65534:65534
read_only: true read_only: true
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
@ -39,6 +30,3 @@ services:
environment: environment:
- PORT=7000 - PORT=7000
- URL=changeme - URL=changeme
#networks:
# nginx_network:
#external: true #use if you run nginx in a docker container, make sure nginx is in the same network