-
-
Notifications
You must be signed in to change notification settings - Fork 253
/
docker-compose.yml
51 lines (50 loc) · 1.5 KB
/
docker-compose.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
services:
keycloak:
build: ./bundles/sirix-rest-api/src/test/resources
ports:
- 8080:8080
- 8433:8433
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_LOG_LEVEL=DEBUG
- KC_IMPORT=/opt/keycloak/data/import/realm-export.json
restart: always
volumes:
- ./bundles/sirix-rest-api/src/test/resources/realm-export.json:/opt/keycloak/data/import/realm-export.json
entrypoint: ["/opt/keycloak/scripts/wait-for-keycloak.sh"]
command: >
start-dev
--import-realm
--http-relative-path=/
--hostname-strict=false
--proxy=edge
networks:
- auth-network
healthcheck:
test: "curl -f http://localhost:8080/ || exit 1"
timeout: 3s
start_period: 10s
retries: 20
server:
build: .
image: sirixdb/sirix
ports:
- "9443:9443"
restart: always
volumes:
- /opt/sirix/sirix-data:/opt/sirix/sirix-data
- ./bundles/sirix-rest-api/src/main/resources/cert.pem:/opt/sirix/sirix-data/cert.pem
- ./bundles/sirix-rest-api/src/main/resources/key.pem:/opt/sirix/sirix-data/key.pem
- ./bundles/sirix-rest-api/src/main/resources/sirix-docker-conf.json:/opt/sirix/sirix-docker-conf.json
- ./bundles/sirix-rest-api/src/test/resources/logback-test.xml:/opt/sirix/logback-test.xml
depends_on:
keycloak:
condition: service_healthy
networks:
- auth-network
links:
- keycloak
networks:
auth-network:
driver: bridge