-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathdocker-compose.yaml
52 lines (52 loc) · 1.13 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
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