Skip to content

Commit 18b3f51

Browse files
author
Luiz Filipy
committed
Adicionado posgresql e pgadmin4
1 parent 121607a commit 18b3f51

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

PostgreSQL & PGAdmin4/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Para criar e executar o container
2+
3+
```sh
4+
$ docker-compose up -d
5+
```
6+
7+
# Acessando e logando PGAdmin4
8+
link: `http://localhost:16543`
9+
`Email Address` : `[email protected]`
10+
`Password` : `root`
11+
12+
# Adicionando PostgreSQL
13+
14+
`Dashboard > Quick Links > Add new Server > Connection`
15+
`Host` : `postgres`
16+
`Username` : `postgres`
17+
`Password` : `root`
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3'
2+
3+
services:
4+
postgres:
5+
image: postgres
6+
environment:
7+
POSTGRES_PASSWORD: "root"
8+
ports:
9+
- "15432:5432"
10+
volumes:
11+
- /home/casa-notebook/Desenvolvimento/Docker-Compose/PostgreSQL:/var/lib/postgresql/data
12+
networks:
13+
- postgres-compose-network
14+
15+
pgadmin:
16+
image: dpage/pgadmin4
17+
environment:
18+
PGADMIN_DEFAULT_EMAIL: "[email protected]"
19+
PGADMIN_DEFAULT_PASSWORD: "root"
20+
ports:
21+
- "16543:80"
22+
depends_on:
23+
- postgres
24+
networks:
25+
- postgres-compose-network
26+
27+
networks:
28+
postgres-compose-network:
29+
driver: bridge

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
</p>
44

55
# Criação e Execução da imagem
6-
#### GoLang, Python, NodeJS, MySQL & PHPMyAdmin, MongoDB
7-
> Para executar o teste execute os comandos abaixo dentro da pasta de determinada linguagem
6+
#### GoLang, Python, NodeJS, MySQL & PHPMyAdmin, MongoDB, PostgreSQL & PGAdmin4
7+
> Para executar o teste execute os comandos abaixo dentro da pasta. (arquivos `docker-compose.yml` possuem comandos diferentes, leia o `README.md` que está contido junto com esses arquivos.)
88
99
1. Criar a imagem ```docker build -t luizfilipy/app .```
1010
2. Executar imagem ```docker run -p 3001:3000 -d luizfilipy/app```

0 commit comments

Comments
 (0)