-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (90 loc) · 2.56 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
matrix_synapse:
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/Dockerfile
ports:
- "8448:8448"
environment:
SYNAPSE_SERVER_NAME: ${MATRIX_HOST}
SYNAPSE_REPORT_STATS: ${MATRIX_REPORT_STATS}
VIRTUAL_HOST: ${MATRIX_HOST}
VIRTUAL_PORT: ${MATRIX_PORT}
LETSENCRYPT_HOST: ${MATRIX_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
env_file:
- .env
depends_on:
- siwe-oidc
- proxy
- letsencrypt
volumes:
# - matrix_data:/data
- matrix_data:/data
- proxy_data_certs:/certs:rw
redis:
image: redis
healthcheck:
test: [ "CMD", "redis-cli","ping" ]
interval: 10s
timeout: 5s
retries: 5
restart: always
siwe-oidc:
image: ghcr.io/spruceid/siwe_oidc:20221208081605782143
depends_on:
- redis
ports:
- ${SIWEOIDC_PORT}:${SIWEOIDC_PORT}
environment:
SIWEOIDC_REDIS_URL: "redis://redis"
SIWEOIDC_ADDRESS: 0.0.0.0
SIWEOIDC_HOST: ${SIWEOIDC_HOST}
SIWEOIDC_PORT: ${SIWEOIDC_PORT}
SIWEOIDC_DEFAULT_CLIENTS: ${SIWEOIDC_DEFAULT_CLIENTS}
SIWEOIDC_BASE_URL: ${SIWEOIDC_BASE_URL}
RUST_LOG: ${RUST_LOG}
VIRTUAL_HOST: ${SIWEOIDC_HOST}
VIRTUAL_PORT: ${SIWEOIDC_PORT}
LETSENCRYPT_HOST: ${SIWEOIDC_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
proxy:
image: nginxproxy/nginx-proxy:alpine
container_name: proxy_server_proxy_1
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
environment:
HTTP_PORT: 80
HTTPS_PORT: 443
ports:
- 80:80
- 443:443
volumes:
- proxy_data_conf_d:/etc/nginx/conf.d:rw
- proxy_data_vhost_d:/etc/nginx/vhost.d:rw
- proxy_data_html:/usr/share/nginx/html:rw
- proxy_data_certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
#- "./max_upload_size.conf:/etc/nginx/conf.d/max_upload_size.conf"
restart: unless-stopped
letsencrypt:
image: nginxproxy/acme-companion:latest
container_name: proxy_server_letsencrypt_1
depends_on:
- proxy
volumes:
- proxy_data_acme:/etc/acme.sh
- proxy_data_conf_d:/etc/nginx/conf.d:rw
- proxy_data_vhost_d:/etc/nginx/vhost.d:rw
- proxy_data_html:/usr/share/nginx/html:rw
- proxy_data_certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
volumes:
matrix_data:
proxy_data_acme:
proxy_data_conf_d:
proxy_data_vhost_d:
proxy_data_html:
proxy_data_certs: