-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (43 loc) · 1.09 KB
/
docker-compose.dev.yml
File metadata and controls
46 lines (43 loc) · 1.09 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:
# PostgreSQL Database (same as production)
postgres:
image: postgres:15-alpine
container_name: chat-app-postgres-dev
restart: unless-stopped
environment:
POSTGRES_DB: chatapp_dev
POSTGRES_USER: chatapp_user
POSTGRES_PASSWORD: chatapp_password
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
networks:
- chat-network-dev
# Next.js Development Server
app-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: chat-app-frontend-dev
restart: unless-stopped
ports:
- "3000:3000"
environment:
NODE_ENV: development
DATABASE_URL: postgresql://chatapp_user:chatapp_password@postgres:5432/chatapp_dev?sslmode=disable
NEXT_PUBLIC_API_BASE_URL: http://localhost:3001
NEXT_PUBLIC_CHAT_API_URL: http://localhost:3001
depends_on:
- postgres
networks:
- chat-network-dev
volumes:
- .:/app
- /app/node_modules
- /app/.next
volumes:
postgres_dev_data:
networks:
chat-network-dev:
driver: bridge