Files

57 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2021-08-03 17:05:04 +01:00
services:
postgres:
2025-06-08 11:27:09 +02:00
image: postgres:17
2021-08-03 17:05:04 +01:00
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
target: dev
2021-08-10 22:44:39 -04:00
cap_drop:
- all
cap_add:
- setuid
- setgid
- setfcap
2025-05-28 10:27:57 +01:00
environment:
- ENABLE_SWITCH_SUPPORT=NO
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"
2025-05-28 10:27:57 +01:00
- "5678:5678" # vscode debugger
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:
context: frontend
target: dev
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-05-28 10:27:57 +01:00
image: nginx:1.28-alpine
ports:
2023-09-20 08:37:35 +01:00
- "80:80"
volumes:
2025-06-07 16:51:39 +02:00
- ./nginx/development.conf:/etc/nginx/conf.d/default.conf:ro
2025-06-12 12:40:10 +02:00
- ./frontend/down.html:/var/www/down.html:ro
2023-09-20 08:37:35 +01:00
- ./backend/media:/media