-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocker-Compose.yaml
More file actions
33 lines (30 loc) · 812 Bytes
/
Docker-Compose.yaml
File metadata and controls
33 lines (30 loc) · 812 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
# docker-compose.yaml to run this project in development mode
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
# - REDIS_URL=redis://redis:6379
- NODE_ENV=development
- PORT=3000
volumes:
- .:/app
- /app/node_modules
depends_on:
- db
db:
image: postgres:14
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: