generated from tfd-ed/tfd-nest-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 868 Bytes
/
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
version: "2"
services:
nest:
build: .
container_name: tfd-nest
depends_on:
- db
- redis
volumes:
- ./src:/app/src
- ./test:/app/test
- .env:/app/.env
- ./upload:/app/upload
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
container_name: tfd-nest-nginx
depends_on:
- nest
environment:
- NGINX_SERVER_NAME=localhost
- NEST_HOST=nest
- NEST_PORT=3000
- NGINX_MAX_BODY=100M
ports:
- 80:80
db:
image: postgres:12
container_name: tfd-nest-db
environment:
POSTGRES_DB: nest
POSTGRES_USER: nest
POSTGRES_PASSWORD: nest
ports:
- 5432:5432
volumes:
- postgresdata:/var/lib/postgresql
redis:
image: redis:5
container_name: tfd-redis
ports:
- 6379:6379
volumes:
postgresdata: