mirror of
https://github.com/decompme/decomp.me.git
synced 2026-01-29 00:38:32 -06:00
* Introduce MSVC7.0 (Visual Studio 2002) toolchain This renames the msvc7.0 toolchain to msvc7.1 (as it is based on Visual Studio 2003, which is msvc7.1), and introduces a new msvc7.0 toolchain based on Visual Studio 2002. * Add presets for Touhou 6 decompilation project * Remove noexec from /sandbox/tmp in docker The MSVC toolchains store intermediate artifacts in the /sandbox/tmp folder, and need to be able to mmap them with PROT_EXEC rights, which is prevented by the noexec flag that docker automatically puts on all tmpfs. To avoid this, we need to ask docker to remove that flag.
64 lines
1.5 KiB
YAML
64 lines
1.5 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"
|
|
ENABLE_MSDOS_SUPPORT: "NO"
|
|
ENABLE_WIN9X_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:exec,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
|