forked from FredHutch/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-preview.yml
33 lines (30 loc) · 1.06 KB
/
docker-compose-preview.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
version: '3.3'
services:
wiki:
networks:
- proxy
image: sc-registry.fredhutch.org/wiki-preview:latest
stdin_open: true
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.sciwiki-preview.rule=Host(`sciwiki-preview.fredhutch.org`)"
- "traefik.http.routers.sciwiki-preview-secured.rule=Host(`sciwiki-preview.fredhutch.org`)"
- "traefik.http.routers.sciwiki-preview.entrypoints=web,web-secured"
- "traefik.http.services.sciwiki-preview.loadbalancer.server.port=80" # it seems you always need to give traefik a port so it 'notices' the service
- "traefik.http.routers.sciwiki-preview.tls=true"
elasticsearch:
networks:
- proxy
image: sc-registry.fredhutch.org/wiki_elasticsearch-preview:latest
stdin_open: true
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ingest.geoip.downloader.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
networks:
proxy:
external: true