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
|
2025-09-25 09:10:55 +01:00
|
|
|
target: dev
|
2021-08-10 22:44:39 -04:00
|
|
|
cap_drop:
|
|
|
|
|
- all
|
|
|
|
|
cap_add:
|
|
|
|
|
- setuid
|
|
|
|
|
- setgid
|
2021-08-12 22:09:38 +01:00
|
|
|
- setfcap
|
2025-05-28 10:27:57 +01:00
|
|
|
environment:
|
|
|
|
|
- ENABLE_SWITCH_SUPPORT=NO
|
2022-09-18 23:37:58 +01:00
|
|
|
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:
|
2025-09-25 09:10:55 +01:00
|
|
|
build:
|
|
|
|
|
context: frontend
|
|
|
|
|
target: dev
|
2021-10-14 12:52:28 +01:00
|
|
|
environment:
|
2024-03-24 03:10:37 +00:00
|
|
|
API_BASE: /api
|
2021-10-14 12:52:28 +01:00
|
|
|
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
|
2022-08-08 17:11:27 +01:00
|
|
|
nginx:
|
2025-05-28 10:27:57 +01:00
|
|
|
image: nginx:1.28-alpine
|
2022-08-08 17:11:27 +01:00
|
|
|
ports:
|
2023-09-20 08:37:35 +01:00
|
|
|
- "80:80"
|
2022-08-08 17:11:27 +01:00
|
|
|
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
|