We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6966c02 commit 37dd720Copy full SHA for 37dd720
docker-compose.yml
@@ -0,0 +1,35 @@
1
+services:
2
+ product-service:
3
+ container_name: product
4
+ build:
5
+ context: .
6
+ dockerfile: Dockerfile
7
+ environment:
8
+ SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/jfs
9
+ SPRING_DATASOURCE_USERNAME: amigoscode
10
+ SPRING_DATASOURCE_PASSWORD: password
11
+ ports:
12
+ - "8090:8080"
13
+ networks:
14
+ - amigos
15
+ db:
16
+ container_name: jfs-postgres
17
+ image: postgres
18
19
+ POSTGRES_USER: amigoscode
20
+ POSTGRES_PASSWORD: password
21
+ POSTGRES_DB: jfs
22
23
+ - "5333:5432"
24
+ restart: unless-stopped
25
+ volumes:
26
+ - db:/data/postgres
27
28
29
+
30
+networks:
31
+ amigos:
32
+ driver: bridge
33
34
+volumes:
35
0 commit comments