-
Notifications
You must be signed in to change notification settings - Fork 119
/
docker-compose.yaml
68 lines (68 loc) · 1.7 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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_GC_WII_SUPPORT: "YES"
ENABLE_N3DS_SUPPORT: "YES"
ENABLE_N64_SUPPORT: "YES"
ENABLE_NDS_ARM9_SUPPORT: "YES"
ENABLE_PS1_SUPPORT: "YES"
# dont install wine32 etc by default
ENABLE_MSDOS_SUPPORT: "NO"
ENABLE_PS2_SUPPORT: "NO"
ENABLE_WIN32_SUPPORT: "NO"
ENABLE_DREAMCAST_SUPPORT: "NO"
# dont install clang by default
ENABLE_SWITCH_SUPPORT: "NO"
# dont install dosemu by default
ENABLE_SATURN_SUPPORT: "NO"
# dont download macosx compilers by default
ENABLE_MACOSX_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.22-alpine
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./backend/media:/media