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