forked from amigoscode/java-springboot-full-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 760 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 760 Bytes
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
services:
product-service:
container_name: product
# image: amigoscode/product-service:jibMaven
build:
context: .
dockerfile: Dockerfile
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/jfs
SPRING_DATASOURCE_USERNAME: amigoscode
SPRING_DATASOURCE_PASSWORD: password
ports:
- "8090:8080"
networks:
- amigos
db:
container_name: jfs-postgres
image: postgres
environment:
POSTGRES_USER: amigoscode
POSTGRES_PASSWORD: password
POSTGRES_DB: jfs
ports:
- "5333:5432"
restart: unless-stopped
volumes:
- db:/data/postgres
networks:
- amigos
networks:
amigos:
driver: bridge
volumes:
db: