massive update i don't feel like noting what changed

This commit is contained in:
Ruben 2025-09-20 15:58:32 -05:00
commit fe7ede16c8
Signed by: sneexy
GPG key ID: 8ECFA045E63BC583
27 changed files with 255 additions and 118 deletions

View file

@ -0,0 +1,15 @@
services:
caddy:
image: caddy:alpine
container_name: caddy
restart: unless-stopped
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- /etc/caddy:/etc/caddy # configurations
- ./caddy_data:/data # internal caddy data
- ./caddy_config:/config # ^
- /srv/docker/mastodon/public:/srv/docker/mastodon/public # mastodon web frontend
- /var/www:/var/www # generic web system directory
- /var/log/caddy:/var/log/caddy # log directory

View file

@ -0,0 +1,21 @@
services:
db:
# custom image for docker with pgroonga support
image: groonga/pgroonga:latest-alpine-17
restart: always
shm_size: 6GB
volumes:
- ./db:/var/lib/postgresql/data
networks:
- postgres_db
env_file:
- .env
healthcheck:
test: "pg_isready -U postgres -d postgres"
interval: 40s
retries: 20
networks:
postgres_db:
name: postgres_db
driver: bridge

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
docker exec -it postgres-db-1 /bin/bash -c "psql -U postgres"