-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
60 lines (55 loc) · 1.23 KB
/
docker-compose.dev.yml
File metadata and controls
60 lines (55 loc) · 1.23 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "8600:8000"
volumes:
- ./backend:/app
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- POSTGRES_DB=development
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_DB=0
- ALLOWED_ORIGINS=http://localhost:8603
db:
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=development
ports:
- "8601:5432"
redis:
image: redis:7-alpine
ports:
- "8602:6379"
volumes:
- redis_data:/data
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "8603:3000"
volumes:
- ./frontend:/app
- ./frontend/node_modules:/app/node_modules
environment:
- NODE_ENV=development
- API_URL=http://backend:8000
- NEXT_PUBLIC_API_URL=http://localhost:8600
- NEXT_PUBLIC_WEBSOCKET_URL=ws://localhost:8600/ws
stdin_open: true
tty: true
volumes:
postgres_data:
redis_data: