Files
decomp.me/docker-compose.yaml
T
sozud d61a6ea952 Initial Saturn support (#728)
* Saturn support

* linter issues

* Fix black formatting issues

* Try fixing ci

* Try 3.10.0

* Try 3.9

* Update asm-differ hash

---------

Co-authored-by: sozud <sozud@users.noreply.github.com>
2023-04-09 13:27:01 +09:00

62 lines
1.4 KiB
YAML

version: '2'
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:
ENABLE_GBA_SUPPORT: "YES"
ENABLE_N64_SUPPORT: "YES"
# dont install wine32 etc by default
ENABLE_NDS_SUPPORT: "NO"
ENABLE_PS1_SUPPORT: "NO"
ENABLE_WII_GC_SUPPORT: "NO"
# dont install clang by default
ENABLE_SWITCH_SUPPORT: "NO"
ENABLE_SATURN_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:uid=1000,gid=1000,size=64M,mode=0700
frontend:
build: frontend
environment:
API_BASE: http://localhost/api
INTERNAL_API_BASE: http://backend:8000/api
FRONTEND_USE_IMAGE_PROXY: "off"
ports:
- "8080:8080"
volumes:
- ./frontend:/frontend
- .env:/.env
nginx:
image: nginx:1.22-alpine
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./backend/media:/media