-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.2 KB
/
docker-compose.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
42
43
44
45
46
services:
backend:
container_name: bruh-backend
build:
context: ./backend
dockerfile: Dockerfile
args:
- DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
- DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
- DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
- OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT}
ports:
- "6969:8000"
environment:
- DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
- DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
- DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
- OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT}
- USE_X_FORWARDED_HOST=True
- ALLOWED_HOSTS=*
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
container_name: bruh-frontend
build:
context: .
dockerfile: frontend/Dockerfile
environment:
- VITE_APP_BACKEND_API_URL=${VITE_APP_BACKEND_API_URL}
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
nginx:
container_name: bruh-nginx
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "42069:42069"
depends_on:
- frontend
- backend