-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 798 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 798 Bytes
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
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: whitecap-backend
ports:
- "7000:7000"
environment:
- PORT=7000
- DATABASE_PATH=/data/whitecap.db
- JWT_SECRET=${JWT_SECRET:-replace-me-with-a-long-random-string-please}
- JWT_TTL_HOURS=168
- ALLOWED_ORIGINS=http://localhost:3000
- ALLOW_REGISTRATION=true
volumes:
- whitecap-data:/data
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: whitecap-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:7000
depends_on:
- backend
restart: unless-stopped
volumes:
whitecap-data: