Files
decomp.me/docker-compose.yaml
2025-03-25 14:53:48 +09:00

54 lines
1.2 KiB
YAML

services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: decompme
POSTGRES_PASSWORD: decompme
ports:
- "5432:5432"
volumes:
- ./postgres:/var/lib/postgresql/data
backend:
build:
context: backend
args:
# dont install clang by default
ENABLE_SWITCH_SUPPORT: "NO"
cap_drop:
- all
cap_add:
- setuid
- setgid
- setfcap
env_file:
- backend/docker.dev.env
ports:
- "8000:8000"
- "5678:5678"
security_opt:
- apparmor=unconfined
- seccomp=unconfined
volumes:
- ./backend:/backend
tmpfs:
# Use a separate tmpfs to prevent a rogue jailed process
# from filling /tmp on the parent container
- /sandbox/tmp:exec,uid=1000,gid=1000,size=64M,mode=0700
frontend:
build: frontend
environment:
API_BASE: /api
INTERNAL_API_BASE: http://backend:8000/api
ports:
- "8080:8080"
volumes:
- ./frontend:/frontend
- .env:/.env
nginx:
image: nginx:1.26-alpine
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./backend/media:/media