-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
version: "3.7"
services:
reverse-proxy:
image: "jwilder/nginx-proxy:alpine"
container_name: "reverse-proxy"
volumes:
- "html:/usr/share/nginx/html"
- "dhparam:/etc/nginx/dhparam"
- "vhost:/etc/nginx/vhost.d"
- "certs:/etc/nginx/certs"
- "/run/docker.sock:/tmp/docker.sock:ro"
- "./site/:/var/www/html/static/"
- "./proxy_image/default_location:/etc/nginx/vhost.d/default_location"
restart: "always"
networks:
- "net"
ports:
- "80:80"
- "443:443"
letsencrypt:
image: "jrcs/letsencrypt-nginx-proxy-companion:latest"
container_name: "letsencrypt-helper"
volumes:
- "html:/usr/share/nginx/html"
- "dhparam:/etc/nginx/dhparam"
- "vhost:/etc/nginx/vhost.d"
- "certs:/etc/nginx/certs"
- "/run/docker.sock:/var/run/docker.sock:ro"
environment:
NGINX_PROXY_CONTAINER: "reverse-proxy"
DEFAULT_EMAIL: "[email protected]"
restart: "always"
depends_on:
- "reverse-proxy"
networks:
- "net"
datacatalog-apiserver:
image: "registry.jsc.fz-juelich.de/eflows4hpc-wp2/datacatalog:master"
container_name: "datacatalog-apiserver"
volumes:
- "/app/mnt:/home/apiserver/mnt/"
environment:
VIRTUAL_HOST: datacatalog.fz-juelich.de
LETSENCRYPT_HOST: datacatalog.fz-juelich.de
VIRTUAL_PORT: 8000
DATACATALOG_APISERVER_ENCRYPTION_KEY: ${SECRETS_ENCRYPTION_KEY}
DATACATALOG_APISERVER_CLIENT_ID: ${DATACATALOG_APISERVER_CLIENT_ID}
DATACATALOG_APISERVER_CLIENT_SECRET: ${DATACATALOG_APISERVER_CLIENT_SECRET}
DATACATALOG_APISERVER_SERVER_METADATA_URL: ${DATACATALOG_APISERVER_SERVER_METADATA_URL}
networks:
- "net"
volumes:
certs:
html:
vhost:
dhparam:
networks:
net:
external: true