2021-12-13 08:47:27 +00:00
|
|
|
---
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2022-09-29 07:37:17 +00:00
|
|
|
image: "vectorim/element-web:v1.11.8"
|
2021-12-13 09:04:43 +00:00
|
|
|
environment:
|
|
|
|
- DOMAIN
|
2021-12-13 13:27:49 +00:00
|
|
|
- HOMESERVER
|
2021-12-13 09:04:43 +00:00
|
|
|
- SERVER_NAME
|
2021-12-13 08:47:27 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
2021-12-13 09:04:43 +00:00
|
|
|
configs:
|
|
|
|
- source: config_json
|
|
|
|
target: /app/config.json
|
2021-12-13 08:47:27 +00:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2021-12-13 13:25:59 +00:00
|
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
2021-12-13 09:04:43 +00:00
|
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
2021-12-13 08:47:27 +00:00
|
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
2022-09-29 07:37:17 +00:00
|
|
|
- "coop-cloud.${STACK_NAME}.version=0.4.0+v1.11.8"
|
2021-12-13 08:47:27 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|
2021-12-13 09:04:43 +00:00
|
|
|
|
2021-12-13 13:16:57 +00:00
|
|
|
configs:
|
|
|
|
config_json:
|
|
|
|
name: ${STACK_NAME}_config_json_${CONFIG_JSON_VERSION}
|
|
|
|
file: config.json.tmpl
|
|
|
|
template_driver: golang
|