forked from sirixdb/sirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.44 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
version: '3'
services:
keycloak:
image: jboss/keycloak
ports:
- 8080:8080
- 8433:8433
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_LOGLEVEL=DEBUG
- KEYCLOAK_IMPORT=/opt/keycloak/realm-export.json
restart: always
volumes:
- ./bundles/sirix-rest-api/src/test/resources/realm-export.json:/opt/keycloak/realm-export.json
- ./bundles/sirix-rest-api/src/test/resources/create-sirix-users.sh:/opt/jboss/startup-scripts/create-sirix-users.sh
command:
- "-b 0.0.0.0"
- "-bmanagement 0.0.0.0"
networks:
- auth-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 5s
retries: 10
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-conf.json:/opt/sirix/sirix-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