Files

53 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2021-08-03 17:05:04 +01:00
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: decompme
POSTGRES_PASSWORD: decompme
ports:
2024-02-22 13:12:10 +00:00
- "5432:5432"
2021-08-03 17:05:04 +01:00
volumes:
2024-02-22 13:12:10 +00:00
- ./postgres:/var/lib/postgresql/data
2021-08-03 17:05:04 +01:00
backend:
2021-10-17 17:54:03 +01:00
build:
context: backend
args:
2022-03-13 13:33:19 -04:00
# dont install clang by default
ENABLE_SWITCH_SUPPORT: "NO"
2021-08-10 22:44:39 -04:00
cap_drop:
- all
cap_add:
- setuid
- setgid
- setfcap
env_file:
2023-09-20 08:37:35 +01:00
- backend/docker.dev.env
2021-08-03 17:05:04 +01:00
ports:
2023-09-20 08:37:35 +01:00
- "8000:8000"
2021-08-10 22:44:39 -04:00
security_opt:
- apparmor=unconfined
- seccomp=unconfined
2021-08-03 17:05:04 +01:00
volumes:
2023-09-20 08:37:35 +01:00
- ./backend:/backend
2022-01-25 11:02:08 -05:00
tmpfs:
2023-09-20 08:37:35 +01:00
# 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
2021-08-03 17:05:04 +01:00
frontend:
build: frontend
environment:
API_BASE: /api
INTERNAL_API_BASE: http://backend:8000/api
2021-08-03 17:05:04 +01:00
ports:
2023-09-20 08:37:35 +01:00
- "8080:8080"
2021-08-03 17:05:04 +01:00
volumes:
2023-09-20 08:37:35 +01:00
- ./frontend:/frontend
- .env:/.env
nginx:
2025-02-08 13:54:14 +00:00
image: nginx:1.26-alpine
ports:
2023-09-20 08:37:35 +01:00
- "80:80"
volumes:
2023-09-20 08:37:35 +01:00
- ./nginx:/etc/nginx/conf.d
- ./backend/media:/media