-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (51 loc) · 1.33 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
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.8'
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: promptsmith_db
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.4-alpine
backend:
build:
context: .
command: "infra/scripts/start.sh"
ports:
- "8000:8000"
environment:
- POSTGRES_HOST=postgres
- POSTGRES_DB=promptsmith_db
- POSTGRES_USER=myuser
- POSTGRES_PASSWORD=mypassword
- REDIS_URL=redis://redis:6379
- SECRET_KEY=your_django_secret
- DEBUG='1'
- JWT_SECRET=your_jwt_secret_here
- ENABLE_DJANGO_ADMIN='0'
- SITE_DOMAIN='localhost'
- FRONTEND_DOMAIN='localhost'
- USER_EMAIL='admin@localhost.lan'
- USER_PASSWORD='AwesomePromptsManagement'
depends_on:
- postgres
- redis
frontend:
build:
dockerfile: Dockerfile
context: ./clients-side/frontend/prompt-smith-frontend/
command: "node /app/server.js"
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_BASE_URL=http://localhost:3000
- API_URL=http://backend:8000
- SESSION_SECRET=your_secret_key
- NEXT_DEBUG=true # Enable Next.js debug logging
- DEBUG=*
- NODE_ENV=development
volumes:
postgres_data: