forked from utfprapps-pb/idr-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
38 lines (35 loc) · 803 Bytes
/
docker-compose.dev.yml
File metadata and controls
38 lines (35 loc) · 803 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
37
38
services:
idr-db:
container_name: idr-db
image: postgres
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
PGDATA: /data/postgres
volumes:
- idr-db:/data/postgres
ports:
- "5432:5432"
networks:
- idr-db
restart: unless-stopped
idr-api:
container_name: idr-api
image: maven:3.8.3-openjdk-17
working_dir: /home/java/app
restart: always
command: mvn spring-boot:run -Dspring-boot.run.jvmArguments="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
volumes:
- ./:/home/java/app
ports:
- "8080:8080"
- "5005:5005"
networks:
- idr-db
depends_on:
- idr-db
networks:
idr-db:
driver: bridge
volumes:
idr-db: