-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.22 KB
/
docker-compose.yml
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
version: '3.8'
services:
dev:
container_name: nestjs_api_dev
image: nestjs-api-dev:1.0.0
build:
context: .
target: development
dockerfile: ./Dockerfile
command: npm run start:dev
ports:
- 3000:3000
networks:
- blog-network
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
prod:
container_name: nestjs_api_prod
image: nestjs-api-prod:1.0.0
build:
context: .
target: production
dockerfile: ./Dockerfile
command: npm run start:dev
ports:
- 3000:3000
networks:
- blog-network
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
postgres:
container_name: 'postgres'
image: postgres:13-alpine
networks:
- network
env_file:
- .env
driver: none
environment:
- POSTGRES_PASSWORD: ""
- POSTGRES_USER: ""
- POSTGRES_DB: ""
networks:
blog-network: