-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 768 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 768 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
version: '3.7'
services:
api:
container_name: nest_api
build:
context: .
target: development
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- ${API_PORT}:${API_PORT}
- 9229:9229
command: npm run start:debug
env_file:
- .env
networks:
- backend
depends_on:
- postgres
postgres:
container_name: nest_db
image: postgres:9.6-alpine
networks:
- backend
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_NAME}
PG_DATA: /var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
- api_db_data:/var/lib/postgresql/data
networks:
backend:
volumes:
api_db_data: