-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-otr.yml
45 lines (43 loc) · 1.07 KB
/
docker-compose-otr.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
45
version: "3.8"
services:
otr-backend:
build:
context: ./backend
dockerfile: Dockerfile.otr
working_dir: /app
ports:
- "8081:8081"
command: "./mvnw clean install -DskipTests"
entrypoint:
[
"sh",
"-c",
"cd otr; ./mvnw spring-boot:run -Dspring-boot.run.profiles=dev -Dspring-boot.run.jvmArguments=-Ddev.web.security.off=${OTR_UNSECURE:-false}",
]
networks:
- otr-dev
volumes:
- $HOME/.m2:/root/.m2
- ./backend/otr:/app/otr
depends_on:
- otr-postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://otr-postgres:6431/otr-postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- SERVER_PORT=8081
- OTR_UNSECURE=${OTR_UNSECURE}
otr-postgres:
build: ./backend/otr/db
container_name: otr-postgres
ports:
- "6431:6431"
networks:
- otr-dev
environment:
- SERVER_PORT=8081
- POSTGRES_DB=otr-postgres
- POSTGRES_PASSWORD=postgres
- PGPORT=6431
networks:
otr-dev: {}