-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
36 lines (31 loc) · 1.2 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
---
version: '3.7'
# To use traefik.io 2 as reverse proxy uncomment this to connect to traefik:
#networks:
# net-proxy:
# external: true
# name: net-proxy
services:
odata:
build:
context: ./
dockerfile: Dockerfile
# image: ${CI_REGISTRY_IMAGE:-docker-registry.rz.uni-bamberg.de/itfl-service/hydra/odata:latest}
environment:
CATALINA_OPTS: "-Xmx2048m -Xms2048m"
# Adapt url to solr index, e.g. in same docker network
SOLR_URL: "http://localhost:8983/solr/search"
ports:
- "8080:8080"
## To use traefik.io 2 as reverse proxy uncomment this and set IMAGE NAME and URL as env vars:
# networks:
# net-proxy:
# labels:
# traefik.enable: true
# traefik.http.services.odata.loadbalancer.server.port: 8080
# traefik.http.routers.odata.rule: Host(`${NAME}.${SERVER_DOMAIN}`))
# traefik.http.routers.odata.entrypoints: websecure
# traefik.http.routers.odata.tls: true
## define some ipAllowlist
## traefik.http.routers.odata.middlewares: ip-allowlist-odatacampusnet
## traefik.http.middlewares.ip-allowlist-odatacampusnet.ipallowlist.sourcerange: 141.13.240.0/24,141.13.222.0/24,141.13.150.0/23,141.13.241.49,141.13.240.64