-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.19 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
50
51
52
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:debug
# ports:
# - 3000:3000
# - 9229:9229
# 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:prod
# ports:
# - 3000:3000
# - 9229:9229
# volumes:
# - .:/usr/src/app
# - /usr/src/app/node_modules
# restart: unless-stopped
postgres:
image: postgres:latest
environment:
POSTGRES_DB: myblogdb
POSTGRES_USER: mybloguser
POSTGRES_PASSWORD: myblogpassword
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
command: ["postgres", "-c", "shared_preload_libraries=pg_stat_statements,uuid-ossp"]
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
postgres-data: