-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose-test.yml
More file actions
36 lines (34 loc) · 850 Bytes
/
docker-compose-test.yml
File metadata and controls
36 lines (34 loc) · 850 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
version: "3.3"
services:
testweb:
build:
context: .
dockerfile: ./Dockerfile-test
environment:
PORT: 8080
JDBC_URL: "jdbc:postgresql://testdb:5432"
DATABASE: personia_test
DB_USERNAME: postgres
DB_PASSWORD: postgres
JWT_SECRET: secret
JWT_ISSUER: "http://0.0.0.0:8080/"
JWT_AUDIENCE: "http://0.0.0.0:8080/hierarchy"
JWT_REALM: "Access to 'hierarchy'"
JWT_EXPIRATION: 31536000
ports:
- "8080:8080"
depends_on:
- testdb
testdb:
image: postgres
volumes:
- ./tmp/testdb:/var/lib/postgresql/testdata
environment:
POSTGRES_DB: personia_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 1s