File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.vscode
22.volumes
3+ extras /.volumes
34.env
45
56# compiled output
Original file line number Diff line number Diff line change @@ -69,9 +69,26 @@ docker-compose up
6969#### Application container
7070
7171``` bash
72- docker exec -it nestjs-tasks bash
72+ docker exec -it taskmanagement_tasks bash
7373```
7474
75+ #### Extras
76+
77+ ##### pgAdmin - PostgreSQL Tools
78+
79+ Optionally, to use pgAdmin:
80+
81+ - Run:
82+
83+ ``` bash
84+ cd extras && docker-compose up
85+ ```
86+
87+ - Use your _ browser_ and access [ http://10.12.0.4 ] ( http://10.12.0.4 )
88+ - Login as ** leogomesdev@domain.com ** , password ** 123456**
89+ - "Add New Server" using .env.example credentials
90+ - Enjoy it!
91+
7592### Without Docker
7693
7794``` bash
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3'
22services :
33 node :
44 image : node:14
5- container_name : nestjs-tasks
5+ container_name : taskmanagement_tasks
66 command : bash -c "npm install && npm run start"
77 restart : always
88 working_dir : ' /app'
@@ -14,7 +14,7 @@ services:
1414
1515 postgres :
1616 image : postgres:13
17- container_name : postgres
17+ container_name : taskmanagement_postgres
1818 restart : always
1919 environment :
2020 - POSTGRES_USER=nestjstasks
Original file line number Diff line number Diff line change 1+ version : ' 2'
2+
3+ services :
4+ pgadmin :
5+ image : dpage/pgadmin4:latest
6+ container_name : taskmanagement_pgadmin
7+ restart : always
8+ environment :
9+ - PGADMIN_DEFAULT_EMAIL=leogomesdev@domain.com
10+ - PGADMIN_DEFAULT_PASSWORD=123456
11+ - PGADMIN_CONFIG_CONSOLE_LOG_LEVEL=30
12+ # volumes:
13+ # - ./volumes/pgadmin:/var/lib/pgadmin/
14+ networks :
15+ nestjstaskmanagement_nestkjs_tasks :
16+ ipv4_address : 10.12.0.4
17+
18+ networks :
19+ nestjstaskmanagement_nestkjs_tasks :
20+ external : true
You can’t perform that action at this time.
0 commit comments