Skip to content

Commit a25d311

Browse files
committed
feat: added api to docker compose
1 parent 1b57681 commit a25d311

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

docker-compose.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
#version: '3.8'
2-
3-
networks:
4-
gv-network:
5-
driver: bridge
6-
volumes:
7-
prometheus_data:
8-
grafana_data:
1+
version: '3.8'
92

103
services:
114
postgres:
@@ -16,4 +9,23 @@ services:
169
environment:
1710
- POSTGRES_USER=admin
1811
- POSTGRES_PASSWORD=admin
19-
- POSTGRES_DB=restful_users
12+
- POSTGRES_DB=restful_users
13+
networks:
14+
- backend
15+
16+
api:
17+
container_name: restful-api-users-java-api
18+
build:
19+
context: .
20+
dockerfile: Dockerfile
21+
depends_on:
22+
- postgres
23+
ports:
24+
- 8080:8080
25+
env_file:
26+
- ./src/main/resources/application-dev.properties
27+
networks:
28+
- backend
29+
30+
networks:
31+
backend:

0 commit comments

Comments
 (0)