forked from 0010aor/FlashNotes
-
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) · 1.02 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.02 KB
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:
db:
image: postgres:15
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_DB=flashnotes
- POSTGRES_USER=flashnotes
- POSTGRES_PASSWORD=flashnotes
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build: ./backend
ports:
- "8000:8000"
depends_on:
- db
environment:
- PROJECT_NAME=FlashNotes
- DOMAIN=localhost
- POSTGRES_SERVER=db
- POSTGRES_USER=flashnotes
- POSTGRES_PASSWORD=flashnotes
- POSTGRES_DB=flashnotes
- FIRST_SUPERUSER=admin@example.com
- FIRST_SUPERUSER_PASSWORD=admin123
- USERS_OPEN_REGISTRATION=true
volumes:
- ./backend:/app
command: sh -c "./prestart.sh && uvicorn src.main:app --reload --host 0.0.0.0 --port 8000"
frontend:
build: ./frontend
ports:
- "5173:5173"
depends_on:
- backend
volumes:
- ./frontend:/app
- /app/node_modules
command: pnpm run dev --host 0.0.0.0
volumes:
postgres_data: