mirror of
https://github.com/encounter/decomp.me.git
synced 2026-03-30 11:06:27 -07:00
0a41ddbc1d
* Switch to Ubuntu 24.04 * Hack for libtinfo5 * remove deprecated 'version:' from docker-compose * Mount /sys as read-only for dosemu2 * Workaround for psyq+dosemu2 * disable apparmor * Ignore font-config error * FIXME -> NOTE
53 lines
1.1 KiB
YAML
53 lines
1.1 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"
|
|
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
|