-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-vkt.yml
58 lines (55 loc) · 1.36 KB
/
docker-compose-vkt.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
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.8"
services:
vkt-backend:
build:
context: ./backend
dockerfile: Dockerfile.vkt
working_dir: /app
ports:
- "8082:8082"
command: "./mvnw clean install -DskipTests"
entrypoint:
[
"sh",
"-c",
"cd vkt; ./mvnw spring-boot:run -Dspring-boot.run.profiles=dev -Dspring-boot.run.jvmArguments=-Ddev.web.security.off=${VKT_UNSECURE:-false}",
]
networks:
- vkt-dev
volumes:
- $HOME/.m2:/root/.m2
- ./backend/vkt:/app/vkt
depends_on:
- vkt-postgres
- localstack
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://vkt-postgres:6432/vkt-postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- SERVER_PORT=8082
- VKT_UNSECURE=${VKT_UNSECURE}
vkt-postgres:
build: ./backend/vkt/db
container_name: vkt-postgres
expose:
- "6432"
ports:
- "6432:6432"
networks:
- vkt-dev
environment:
- POSTGRES_DB=vkt-postgres
- POSTGRES_PASSWORD=postgres
- PGPORT=6432
localstack:
image: localstack/localstack:3.7.0
ports:
- "4566:4566"
networks:
- vkt-dev
environment:
- EXTRA_CORS_ALLOWED_ORIGINS="'*'"
- HOSTNAME=localhost.localstack.cloud
- LOCALSTACK_HOST=localhost.localstack.cloud
networks:
vkt-dev: {}