agora/compose.yml

83 lines
2.2 KiB
YAML

---
version: "3.8"
services:
app:
environment:
- AGORA_USER
- AGORA_PATH
- AGORA_GIT
- AGORA_NAME
image: git.coopcloud.tech/flancian/agora-server:latest
configs:
- source: server_entrypoint
target: /docker-entrypoint.sh
mode: 0555
entrypoint: /docker-entrypoint.sh
ports:
- 5017
networks:
- proxy
volumes:
- "data:$AGORA_PATH"
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5017"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
# - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
# - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
# - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=0.1.1+latest"
# Disabling health checks during development as per https://docs.coopcloud.tech/maintainers/handbook/.
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
bridge:
environment:
- AGORA_USER
- AGORA_PATH
- AGORA_GIT
- AGORA_NAME
image: git.coopcloud.tech/flancian/agora-bridge:latest
configs:
- source: bridge_entrypoint
target: /docker-entrypoint.sh
mode: 0555
entrypoint: /docker-entrypoint.sh
volumes:
- "data:$AGORA_PATH"
deploy:
restart_policy:
condition: on-failure
networks:
proxy:
external: true
volumes:
data:
configs:
server_entrypoint:
name: ${STACK_NAME}_server_entrypoint_${SERVER_ENTRYPOINT_VERSION}
file: entrypoint.server.sh.tmpl
template_driver: golang
bridge_entrypoint:
name: ${STACK_NAME}_bridge_entrypoint_${BRIDGE_ENTRYPOINT_VERSION}
file: entrypoint.bridge.sh.tmpl
template_driver: golang