This repository was archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
71 lines (70 loc) · 1.81 KB
/
compose.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
# This Docker compose file creates the local environment needed to run the API
# without having to install the dependencies on your machine.
#
# No need to start it manually! When running in a Gradle-developer environment,
# Spring will automatically start the services defined in this file.
services:
postgres:
image: 'postgres:latest'
ports:
- '15432:5432'
environment:
- 'POSTGRES_DB=presentium'
- 'POSTGRES_USER=presentium'
- 'POSTGRES_PASSWORD=presentium'
volumes:
- 'postgres-data:/var/lib/postgresql/data'
vault:
image: 'hashicorp/vault:1.17.3'
ports:
- '18200:8200'
environment:
VAULT_DEV_ROOT_TOKEN_ID: 'presentium-root'
VAULT_DEV_LISTEN_ADDRESS: '0.0.0.0:8200'
cap_add:
- IPC_LOCK
entrypoint: >-
vault server -dev
vault-init:
build:
context: .
dockerfile: src/test/resources/docker/vault-init.Dockerfile
depends_on:
- vault
environment:
VAULT_ADDR: 'http://vault:8200'
VAULT_TOKEN: 'presentium-root'
volumes:
- './src/test/resources/docker/vault:/config'
command:
- 'sh'
- '-c'
- >-
sleep 3 &&
cd /config &&
sh init.sh
oidc:
image: ghcr.io/navikt/mock-oauth2-server:2.1.8
ports:
- '17580:17580'
labels:
org.springframework.boot.ignore: true
volumes:
- './src/test/resources/mock-oidc:/config'
environment:
SERVER_PORT: 17580
# language=JSON
JSON_CONFIG: |-
{
"interactiveLogin": "true",
"loginPagePath": "/config/mock-oidc-login.html",
"rotateRefreshToken": "true",
"tokenCallbacks": [
{
"issuerId": "presentium",
"requestMappings": []
}
]
}
volumes:
postgres-data: