massive update i don't feel like noting what changed
This commit is contained in:
parent
0d93587aef
commit
fe7ede16c8
27 changed files with 255 additions and 118 deletions
15
neptunium/srv/docker/caddy/compose.yaml
Normal file
15
neptunium/srv/docker/caddy/compose.yaml
Normal 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
|
||||
21
neptunium/srv/docker/postgres/compose.yaml
Normal file
21
neptunium/srv/docker/postgres/compose.yaml
Normal 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
|
||||
2
neptunium/srv/docker/postgres/psql.sh
Normal file
2
neptunium/srv/docker/postgres/psql.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
docker exec -it postgres-db-1 /bin/bash -c "psql -U postgres"
|
||||
Loading…
Add table
Add a link
Reference in a new issue