-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1018 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 1018 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
37
38
39
40
41
42
43
44
45
46
version: '3.9'
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: planora
POSTGRES_PASSWORD: planora
POSTGRES_DB: planora
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
backend:
build:
context: ./apps/backend
environment:
DATABASE_URL: postgresql://planora:planora@db:5432/planora?schema=public
JWT_ACCESS_SECRET: changeme_access_secret_at_least_16_chars
JWT_REFRESH_SECRET: changeme_refresh_secret_at_least_16_chars
FRONTEND_URL: http://localhost:5173
PORT: 4000
depends_on:
- db
ports:
- "4000:4000"
volumes:
- ./apps/backend:/app
- /app/node_modules
frontend:
build:
context: ./apps/frontend
environment:
VITE_API_BASE_URL: http://localhost:4000
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./apps/frontend:/app
- /app/node_modules
volumes:
pg_data: