homelab/proxmox/services/mariadb.yml
Samantha Atkins f3017b9ab5 Add all swarm service definitions, CLAUDE.md, and gen-env.sh
Track all active Proxmox swarm stack YMLs, NATS config, Postgres
init SQL, and env generation script. Update .gitignore for homelab
project. Add CLAUDE.md for project context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 03:51:11 -04:00

35 lines
646 B
YAML

version: '3.8'
# Deploy with:
# docker stack deploy -c mariadb.yml mariadb
#
# Runs on: adder-ghost
services:
mariadb:
image: mariadb:11
environment:
MYSQL_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
ports:
- "3306:3306"
volumes:
- mariadb_data:/var/lib/mysql
networks:
- overlay-net
deploy:
replicas: 1
placement:
constraints:
- node.hostname == adder-ghost
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
volumes:
mariadb_data:
networks:
overlay-net:
external: true
name: ${OVERLAY_NETWORK:-homelab-net}