ansible-on-prem/roles/docker/swarm/stacks/files/scylladb-compose.yml
xbazzi e7ba86f10a
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 35s
Feat: add scylladb + a bunch of stuff I forgot to commit earlier
2025-08-21 23:43:52 -06:00

37 lines
1.1 KiB
YAML

services:
some-scylla:
image: scylladb/scylla
networks:
- traefik_traefik_proxy
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
labels:
# Enable Service discovery for Traefik
- "traefik.enable=true"
# Define the scylladb router rule
- "traefik.http.routers.scylladb.rule=Host(`scylladb.lan.xbazzi.com`)"
# Expose scylladb on the HTTPS entrypoint
- "traefik.http.routers.scylladb.entrypoints=websecure"
# - "traefik.http.routers.scylladb.entrypoints=web"
# Enable TLS
- "traefik.http.routers.scylladb.tls=true"
# - "traefik.http.routers.scylladb.tls=false"
# Expose the scylladb port number to Traefik
- "traefik.http.services.scylladb.loadbalancer.server.port=9494"
# Custom labels
- "com.xbazzi.stack=scylladb"
- "com.xbazzi.critical=true"
placement:
constraints:
- node.labels.zone == core
- node.labels.type == db
volumes:
- /var/lib/scylla:/var/lib/scylla
networks:
traefik_traefik_proxy:
external: true