-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 791 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 791 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
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: guardforge
POSTGRES_PASSWORD: secret
POSTGRES_DB: guardforge
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5433:5432"
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
backend:
build: ./backend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./backend:/app
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- db
- redis
frontend:
build: ./frontend
command: npm run dev -- --host
volumes:
- ./frontend:/app
env_file:
- .env
ports:
- "3000:3000"
depends_on:
- backend
volumes:
pgdata: