Skip to content

Commit d3ee576

Browse files
Review of README, adding optional pgAdmin usage instructions
1 parent 7cc8617 commit d3ee576

4 files changed

Lines changed: 41 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.vscode
22
.volumes
3+
extras/.volumes
34
.env
45

56
# compiled output

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff 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

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22
services:
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

extras/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)