-
-
Notifications
You must be signed in to change notification settings - Fork 248
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (61 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
62 lines (61 loc) · 1.81 KB
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
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:latest
ports:
- "9443:9443"
restart: always
# Allow mmap syscalls for LinuxMemorySegmentAllocator
privileged: true
security_opt:
- seccomp:unconfined
# Memory settings to match sirix-core tests (16GB heap + 4GB direct memory)
deploy:
resources:
limits:
memory: 24g
reservations:
memory: 8g
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