-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.23 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
version: '2.3'
services:
postgres:
image: postgres:12
networks:
- nest_network
ports:
- 5432:5432
volumes:
- nest_udemy_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=pgadmin
- POSTGRES_PASSWORD=devPassword123!
- POSTGRES_DB=nestudemydb
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: no-reply@no-reply.no-reply.com
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- 5050:80
networks:
- nest_network
nest_server:
build:
context: .
dockerfile: Dockerfile.dev
command: nest start --watch
networks:
- nest_network
depends_on:
- postgres
ports:
- 3000:3000
volumes:
- .:/opt/node/app:delegated
- ./package.json:/opt/node/package.json
- notused:/opt/node/node_modules
volumes:
nest_udemy_data:
notused:
pgadmin:
networks:
nest_network: