This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
forked from opencadc/cadc-vosui
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (50 loc) · 1.69 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
51
52
53
version: '3.2'
services:
proxy:
image: traefik:v2.4
command:
- "--log.level=INFO"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
# - "--providers.file.directory=/configuration/"
# - "--providers.file.watch=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.myresolver.acme.email=youremail@yourdomain.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- '443:443'
- '80:80'
- '8080:8080'
networks:
- 'storage'
volumes:
- './docker/letsencrypt:/letsencrypt'
- 'server_certs:/usr/share/nginx/certs'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
depends_on:
- 'storage'
storage:
image: opencadc/storage:9-jdk11-slim
ports:
- '5555:5555'
networks:
- 'storage'
labels:
- "traefik.enable=true"
- "traefik.http.services.bitwarden.loadbalancer.server.port=8080"
- "traefik.http.routers.bitwarden.rule=PathPrefix(`/storage`)"
- "traefik.http.routers.bitwarden.entrypoints=websecure"
- "traefik.http.routers.bitwarden.tls.certresolver=myresolver"
environment:
CATALINA_OPTS: -DSSO_SERVERS="www.canfar.net"
networks:
storage:
volumes:
server_certs:
external: true