-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.local.yml
41 lines (39 loc) · 1.1 KB
/
compose.local.yml
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
# DO NOT USE IN PRODUCTION
services:
app:
build:
context: .
dockerfile: backend.Dockerfile
command: python manage.py runserver 0.0.0.0:8000
restart: unless-stopped
depends_on:
- db
volumes:
- ./ctf_platform_backend:/opt/ctf_platform_backend/ctf_platform_backend
- ./django-static:/opt/ctf-platform-backend/static-root
- ./media-static:/opt/ctf-platform-backend/media-root
- ./.files:/opt/ctf-platform-backend/.files
ports:
- 8000:8000
environment:
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: db
DB_PORT: 5432
DB_NAME: postgres
ALLOWED_HOSTS: "localhost"
CORS_ALLOWED_ORIGINS: "http://localhost:5173"
CSRF_TRUSTED_ORIGINS: "http://localhost:5173"
DEBUG: "True"
SECRET_KEY: "secret"
db:
image: postgres:13
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432