cleanup | add includes for docker-compose files

This commit is contained in:
2026-03-30 03:40:39 +00:00
parent dfde1f48f5
commit 2a84d5a71e
8 changed files with 135 additions and 84 deletions

View File

@@ -1,9 +1,3 @@
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
# CODE SERVER IS RUNNING ON UBUNTU HOST
# we had issues with things functionoing right in the past
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
# code-server -- https://hub.docker.com/r/linuxserver/code-server # code-server -- https://hub.docker.com/r/linuxserver/code-server
services: services:
code-server: code-server:
@@ -13,17 +7,14 @@ services:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
- TZ=America/New_York - TZ=America/New_York
- PASSWORD=${PASSWORD} #optional - PASSWORD=${PASSWORD}
- SUDO_PASSWORD=${SUDO_PASSWORD} #optional - SUDO_PASSWORD=${SUDO_PASSWORD}
- PROXY_DOMAIN=dev.wompmacho.com #optional - PROXY_DOMAIN=${PROXY_DOMAIN}
- DEFAULT_WORKSPACE=/apps - DEFAULT_WORKSPACE=${DEFAULT_WORKSPACE}
volumes: volumes:
- /srv/code-server/config:/config # code-server expects /code-server as default dir? - ${CODESERVER_DATA}/config:/config # code-server expects /code-server as default dir?
- /srv:/apps - /srv:/apps
# docker socket - /var/run/docker.sock:/var/run/docker.sock # docker socket
- /var/run/docker.sock:/var/run/docker.sock
# podman socket
#- /run/user/1000/podman/podman.sock:/var/run/docker.sock
ports: ports:
- 8443:8443 - 8443:8443
restart: unless-stopped restart: unless-stopped

View File

@@ -10,8 +10,8 @@ services:
shm_size: "512mb" # update for your cameras based on calculation above shm_size: "512mb" # update for your cameras based on calculation above
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /srv/frigate/config:/config - ${FRIGATE_DATA}/config:/config
- /srv/frigate/media:/media/frigate - ${FRIGATE_DATA}/media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache target: /tmp/cache
tmpfs: tmpfs:

View File

@@ -8,61 +8,15 @@ services:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
volumes: volumes:
- /srv/mkdocs/public:/docs - ${MKDOCS_DATA}/public:/docs
stdin_open: true stdin_open: true
tty: true tty: true
ports: ports:
- "9896:8000" - "9896:8000"
networks: networks:
- frontend - frontend
labels:
# --- Basic Traefik Enabling ---
- "traefik.enable=true" # MANDATORY because exposedByDefault is false in your Traefik config
# --- HTTP Router Configuration ---
# - "traefik.http.routers.mkdocs-http.rule=Host(`wiki.wompmacho.com`)" # <-- IMPORTANT: Change this to your domain!
# - "traefik.http.routers.mkdocs-http.entrypoints=web" # Use your 'web' entrypoint for HTTP (port 80)
- "traefik.http.routers.mkdocs-https.tls=true"
- "traefik.http.routers.mkdocs-https.tls.certresolver=cloudflare"
- "traefik.http.routers.mkdocs-https.entrypoints=websecure"
- "traefik.http.routers.mkdocs-https.rule=Host(`wiki.wompmacho.com`)" # <-- IMPORTANT: Change this to your domain!
# This label tells Traefik to connect to port 8000 *inside* the MkDocs container.
- "traefik.http.services.mkdocs-service.loadbalancer.server.port=8000"
restart: unless-stopped restart: unless-stopped
# private-mkdocs:
# container_name: 'private-mkdocs'
# restart: unless-stopped
# image: squidfunk/mkdocs-material
# environment:
# - PUID=1000
# - PGID=1000
# volumes:
# - private-mkdocs:/docs
# stdin_open: true
# tty: true
# ports:
# - "9897:8000"
# volumes:
# public-mkdocs:
# name: public-mkdocs
# driver_opts:
# type: nfs
# o: addr=truenas,nolock,soft,rw
# device: :/mnt/store/vault/app/mkdocs/public
# private-mkdocs:
# name: private-mkdocs
# driver_opts:
# type: nfs
# o: addr=truenas,nolock,soft,rw
# device: :/mnt/store/vault/app/mkdocs/private
networks: networks:
frontend: frontend:
external: true external: true

View File

@@ -1,5 +1,5 @@
# nginx-proxy-manager -- https://nginxproxymanager.com/setup/ # nginx-proxy-manager -- https://nginxproxymanager.com/setup/
version: '3.8' ---
services: services:
app: app:
container_name: nginx-proxy-manager container_name: nginx-proxy-manager
@@ -12,13 +12,6 @@ services:
- '81:81' # Admin Web Port - '81:81' # Admin Web Port
# Add any other Stream port you want to expose # Add any other Stream port you want to expose
# - '21:21' # FTP # - '21:21' # FTP
# Uncomment the next line if you uncomment anything in the section
#environment:
# Uncomment this if you want to change the location of
# the SQLite DB file within the container
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host # Uncomment this if IPv6 is not enabled on your host
#DISABLE_IPV6: 'true' #DISABLE_IPV6: 'true'
volumes: volumes:

View File

@@ -22,8 +22,8 @@ services:
- 8999:8999 - 8999:8999
- 8999:8999/udp - 8999:8999/udp
volumes: volumes:
- /srv/qbittorrentvpn/config:/config - ${QBITTORRENT_DATA}/config:/config
- /srv/qbittorrentvpn/theme:/theme - ${QBITTORRENT_DATA}/theme:/theme
- downloads_nfs:/downloads - downloads_nfs:/downloads
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@@ -0,0 +1,117 @@
# sure - https://github.com/we-promise/sure/blob/main/docs/hosting/docker.md
x-db-env: &db_env
POSTGRES_USER: ${POSTGRES_USER:-sure_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-sure_password}
POSTGRES_DB: ${POSTGRES_DB:-sure_production}
x-rails-env: &rails_env
<<: *db_env
SECRET_KEY_BASE: ${SECRET_KEY_BASE:-a7523c3d0ae56415046ad8abae168d71074a79534a7062258f8d1d51ac2f76d3c3bc86d86b6b0b307df30d9a6a90a2066a3fa9e67c5e6f374dbd7dd4e0778e13}
SELF_HOSTED: "true"
RAILS_FORCE_SSL: "false"
RAILS_ASSUME_SSL: "false"
DB_HOST: db
DB_PORT: 5432
REDIS_URL: redis://redis:6379/1
# NOTE: enabling OpenAI will incur costs when you use AI-related features in the app (chat, rules). Make sure you have set appropriate spend limits on your account before adding this.
OPENAI_ACCESS_TOKEN: ${OPENAI_ACCESS_TOKEN}
services:
web:
image: ghcr.io/we-promise/sure:stable
volumes:
- ${SURE_DATA}/app-storage:/rails/storage
ports:
- ${PORT:-3000}:3000
restart: unless-stopped
environment:
<<: *rails_env
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
# dns:
# - 8.8.8.8
# - 1.1.1.1
networks:
- sure_net
worker:
image: ghcr.io/we-promise/sure:stable
command: bundle exec sidekiq
volumes:
- ${SURE_DATA}/app-storage:/rails/storage
restart: unless-stopped
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
# dns:
# - 8.8.8.8
# - 1.1.1.1
environment:
<<: *rails_env
networks:
- sure_net
db:
image: postgres:16
restart: unless-stopped
volumes:
- ${SURE_DATA}/postgres-data:/var/lib/postgresql/data
environment:
<<: *db_env
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- sure_net
backup:
profiles:
- backup
image: prodrigestivill/postgres-backup-local
restart: unless-stopped
volumes:
- ${SURE_DATA}/backups:/backups # Change this path to your desired backup location on the host machine
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=${POSTGRES_DB:-sure_production}
- POSTGRES_USER=${POSTGRES_USER:-sure_user}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-sure_password}
- SCHEDULE=@daily # Runs once a day at midnight
- BACKUP_KEEP_DAYS=7 # Keeps the last 7 days of backups
- BACKUP_KEEP_WEEKS=4 # Keeps 4 weekly backups
- BACKUP_KEEP_MONTHS=6 # Keeps 6 monthly backups
depends_on:
- db
networks:
- sure_net
redis:
image: redis:latest
restart: unless-stopped
volumes:
- ${SURE_DATA}/redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- sure_net
# volumes:
# app-storage:
# postgres-data:
# redis-data:
networks:
sure_net:
driver: bridge

View File

@@ -6,14 +6,14 @@ services:
container_name: vaultwarden container_name: vaultwarden
restart: unless-stopped restart: unless-stopped
environment: environment:
DOMAIN: "https://vaultwarden.wompmacho.com" DOMAIN: "${VAULT_DOMAIN}"
ROCKET_PORT: 80 ROCKET_PORT: ${ROCKET_PORT}
ROCKET_ENV: production ROCKET_ENV: production
volumes: volumes:
- vaultwarden-mount:/data/ - vaultwarden-mount:/data/
ports: ports:
- '9998:80' - 'LOCAL_PORT:80'
- '9999:443' - 'SSL_PORT:443'
volumes: volumes:
vaultwarden-mount: vaultwarden-mount:

View File

@@ -10,20 +10,16 @@ services:
- TZ=America/New_York - TZ=America/New_York
- TITLE=Webtop #optional - TITLE=Webtop #optional
dns: dns:
- 10.0.0.11 - ${PIHOLE_SERVER}
shm_size: "1gb" #optional shm_size: "1gb" #optional
volumes: volumes:
- /srv/webtop/config:/config - ${WEBTOP_DATA}config:/config
ports: ports:
- 7978:3000 - 7978:3000
- 7979:3001 - 7979:3001
networks: networks:
- frontend - frontend
labels:
- traefik.enable=true
- traefik.http.routers.nginx-http.rule=Host(`webtop.wompmacho.com`)
- traefik.http.routers.nginx-http.entrypoints=web
restart: unless-stopped restart: unless-stopped
networks: networks: