-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 976 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
version: '3.9'
services:
postgres:
image: postgres:15.6-alpine
container_name: projeto-pcp
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=123456
- POSTGRES_USER=postgres
- POSTGRES_DB=projeto-pcp
networks:
- postgres
pgadmin:
image: dpage/pgadmin4
container_name: projeto-pcp-pgadmin
ports:
- 8000:80
environment:
- PGADMIN_DEFAULT_EMAIL=postgres@mail.com
- PGADMIN_DEFAULT_PASSWORD=123456
networks:
- postgres
app-projeto-pcp:
build:
context: .
dockerfile: Dockerfile
container_name: projeto-pcp-app
volumes:
- ./src:/app/src
ports:
- 8080:8080
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://projeto-pcp:5432/projeto-pcp
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: 123456
networks:
- postgres
networks:
postgres:
driver: bridge