Adding comprehensive comments
This commit is contained in:
@@ -1,13 +1,20 @@
|
|||||||
|
# Adminer Database Management Tool Configuration
|
||||||
services:
|
services:
|
||||||
adminer:
|
adminer:
|
||||||
|
# Basic container configuration
|
||||||
container_name: adminer
|
container_name: adminer
|
||||||
image: docker.io/library/adminer:5.3.0
|
image: docker.io/library/adminer:5.3.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:8080
|
- ${PORT}:8080 # Maps host port to Adminer web interface
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses pre-existing backend network
|
||||||
|
@@ -1,19 +1,28 @@
|
|||||||
|
# Forgejo Git Service Configuration
|
||||||
services:
|
services:
|
||||||
forgejo:
|
forgejo:
|
||||||
|
# Basic container configuration
|
||||||
container_name: forgejo
|
container_name: forgejo
|
||||||
image: codeberg.org/forgejo/forgejo:11.0.3-rootless
|
image: codeberg.org/forgejo/forgejo:11.0.3-rootless
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: ${PUID}:${PGID}
|
user: ${PUID}:${PGID} # Runs as specified user/group
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/forgejo/config:/etc/gitea
|
- ${APPDATA_PATH}/forgejo/config:/etc/gitea # Configuration files
|
||||||
- ${APPDATA_PATH}/forgejo/data:/var/lib/gitea
|
- ${APPDATA_PATH}/forgejo/data:/var/lib/gitea # Application data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro # Timezone configuration
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro # Local time configuration
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:3000
|
- ${SERVER_PORT}:3000 # Maps host port to Forgejo web interface
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing frontend network
|
||||||
|
@@ -1,28 +1,41 @@
|
|||||||
|
# Gitea Mirror Service Configuration
|
||||||
services:
|
services:
|
||||||
gitea-mirror:
|
gitea-mirror:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea-mirror
|
container_name: gitea-mirror
|
||||||
image: ghcr.io/raylabshq/gitea-mirror:v2.22.0
|
image: ghcr.io/raylabshq/gitea-mirror:v2.22.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: ${PUID}:${PGID}
|
user: ${PUID}:${PGID} # Runs as specified user/group
|
||||||
|
|
||||||
|
# Application environment configuration
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production # Runtime environment
|
||||||
- DATABASE_URL=file:data/gitea-mirror.db
|
- DATABASE_URL=file:data/gitea-mirror.db # SQLite database location
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0 # Binding address
|
||||||
- PORT=4321
|
- PORT=4321 # Internal container port
|
||||||
- JWT_SECRET=${JWT_SECRET}
|
- JWT_SECRET=${JWT_SECRET} # Authentication secret
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/gitea-mirror/data:/app/data
|
- ${APPDATA_PATH}/gitea-mirror/data:/app/data # Application data storage
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:4321
|
- ${PORT}:4321 # Maps host port to container
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal # Connects to internal network
|
||||||
|
|
||||||
|
# Health check configuration
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=3", "--spider", "http://localhost:4321/api/health"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=3", "--spider", "http://localhost:4321/api/health"]
|
||||||
interval: 30s
|
interval: 30s # Check interval
|
||||||
timeout: 10s
|
timeout: 10s # Check timeout
|
||||||
retries: 5
|
retries: 5 # Allowed retries
|
||||||
start_period: 15s
|
start_period: 15s # Initial delay before checks
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
external: true
|
external: true # Uses pre-existing internal network
|
||||||
|
@@ -1,42 +1,61 @@
|
|||||||
|
# Gitea Multiple Actions Runners Configuration
|
||||||
services:
|
services:
|
||||||
|
# First Gitea Runner Instance
|
||||||
gitea_runner1:
|
gitea_runner1:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_runner1
|
container_name: gitea_runner1
|
||||||
image: docker.io/gitea/act_runner:0.2.12
|
image: docker.io/gitea/act_runner:0.2.12
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Runner configuration environment variables
|
||||||
environment:
|
environment:
|
||||||
CONFIG_FILE: /config.yaml
|
CONFIG_FILE: /config.yaml # Path to configuration file
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
GITEA_INSTANCE_URL: "${INSTANCE_URL}" # URL of Gitea instance
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" # Registration token
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME1}"
|
GITEA_RUNNER_NAME: "${RUNNER_NAME1}" # Display name for first runner
|
||||||
|
|
||||||
|
# Persistent storage and docker socket configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/config.yaml
|
- ./config.yaml:/config.yaml # Shared configuration file
|
||||||
- ./data1:/data
|
- ./data1:/data # Dedicated data directory for runner1
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # Docker socket for container jobs
|
||||||
|
|
||||||
|
# Second Gitea Runner Instance
|
||||||
gitea_runner2:
|
gitea_runner2:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_runner2
|
container_name: gitea_runner2
|
||||||
image: docker.io/gitea/act_runner:0.2.12
|
image: docker.io/gitea/act_runner:0.2.12
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Runner configuration environment variables
|
||||||
environment:
|
environment:
|
||||||
CONFIG_FILE: /config.yaml
|
CONFIG_FILE: /config.yaml # Path to configuration file
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
GITEA_INSTANCE_URL: "${INSTANCE_URL}" # URL of Gitea instance
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" # Registration token
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME2}"
|
GITEA_RUNNER_NAME: "${RUNNER_NAME2}" # Display name for second runner
|
||||||
|
|
||||||
|
# Persistent storage and docker socket configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/config.yaml
|
- ./config.yaml:/config.yaml # Shared configuration file
|
||||||
- ./data2:/data
|
- ./data2:/data # Dedicated data directory for runner2
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # Docker socket for container jobs
|
||||||
|
|
||||||
|
# Third Gitea Runner Instance
|
||||||
gitea_runner3:
|
gitea_runner3:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_runner3
|
container_name: gitea_runner3
|
||||||
image: docker.io/gitea/act_runner:0.2.12
|
image: docker.io/gitea/act_runner:0.2.12
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Runner configuration environment variables
|
||||||
environment:
|
environment:
|
||||||
CONFIG_FILE: /config.yaml
|
CONFIG_FILE: /config.yaml # Path to configuration file
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
GITEA_INSTANCE_URL: "${INSTANCE_URL}" # URL of Gitea instance
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" # Registration token
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME3}"
|
GITEA_RUNNER_NAME: "${RUNNER_NAME3}" # Display name for third runner
|
||||||
|
|
||||||
|
# Persistent storage and docker socket configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/config.yaml
|
- ./config.yaml:/config.yaml # Shared configuration file
|
||||||
- ./data3:/data
|
- ./data3:/data # Dedicated data directory for runner3
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # Docker socket for container jobs
|
||||||
|
@@ -1,14 +1,20 @@
|
|||||||
|
# Gitea Actions Runner Configuration
|
||||||
services:
|
services:
|
||||||
gitea_runner:
|
gitea_runner:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_runner
|
container_name: gitea_runner
|
||||||
image: docker.io/gitea/act_runner:0.2.12
|
image: docker.io/gitea/act_runner:0.2.12
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Runner configuration environment variables
|
||||||
environment:
|
environment:
|
||||||
CONFIG_FILE: /config.yaml
|
CONFIG_FILE: /config.yaml # Path to configuration file
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
GITEA_INSTANCE_URL: "${INSTANCE_URL}" # URL of Gitea instance
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" # Registration token
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME}"
|
GITEA_RUNNER_NAME: "${RUNNER_NAME}" # Display name for runner
|
||||||
|
|
||||||
|
# Persistent storage and docker socket configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/config.yaml
|
- ./config.yaml:/config.yaml # Runner configuration file
|
||||||
- ./data:/data
|
- ./data:/data # Persistent runner data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # Docker socket for container jobs
|
||||||
|
@@ -1,55 +1,85 @@
|
|||||||
|
# Gitea Git Service with MariaDB Database Configuration
|
||||||
services:
|
services:
|
||||||
|
# MariaDB Database Service
|
||||||
gitea_db:
|
gitea_db:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_db
|
container_name: gitea_db
|
||||||
image: docker.io/library/mariadb:11.8.2
|
image: docker.io/library/mariadb:11.8.2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Database optimization parameters
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
||||||
|
|
||||||
|
# Database credentials and configuration
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # Root password
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
- MYSQL_USER=${MYSQL_USER} # Gitea database user
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD} # Gitea user password
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE} # Database name for Gitea
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/gitea/db:/var/lib/mysql
|
- ${APPDATA_PATH}/gitea/db:/var/lib/mysql
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${DB_PORT}:3306
|
- ${DB_PORT}:3306 # Maps host port to MariaDB
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health check configuration
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||||
start_period: 10s
|
start_period: 10s # Initial delay before checks
|
||||||
interval: 10s
|
interval: 10s # Check interval
|
||||||
timeout: 5s
|
timeout: 5s # Check timeout
|
||||||
retries: 3
|
retries: 3 # Allowed retries
|
||||||
|
|
||||||
|
# Gitea Server Service
|
||||||
gitea_server:
|
gitea_server:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_server
|
container_name: gitea_server
|
||||||
image: docker.io/gitea/gitea:1.24.2-rootless
|
image: docker.io/gitea/gitea:1.24.2-rootless
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Service dependencies
|
||||||
depends_on:
|
depends_on:
|
||||||
gitea_db:
|
gitea_db:
|
||||||
condition: service_healthy
|
condition: service_healthy # Requires healthy database
|
||||||
user: ${PUID}:${PGID}
|
|
||||||
|
# Runtime configuration
|
||||||
|
user: ${PUID}:${PGID} # Runs as specified user/group
|
||||||
|
|
||||||
|
# Gitea configuration
|
||||||
environment:
|
environment:
|
||||||
- GITEA__database__DB_TYPE=mysql
|
- GITEA__database__DB_TYPE=mysql
|
||||||
- GITEA__database__HOST=gitea_db:3306
|
- GITEA__database__HOST=gitea_db:3306
|
||||||
- GITEA__database__NAME=${MYSQL_DATABASE}
|
- GITEA__database__NAME=${MYSQL_DATABASE}
|
||||||
- GITEA__database__USER=${MYSQL_USER}
|
- GITEA__database__USER=${MYSQL_USER}
|
||||||
- GITEA__database__PASSWD=${MYSQL_PASSWORD}
|
- GITEA__database__PASSWD=${MYSQL_PASSWORD}
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/gitea/config:/etc/gitea
|
- ${APPDATA_PATH}/gitea/config:/etc/gitea
|
||||||
- ${APPDATA_PATH}/gitea/data:/var/lib/gitea
|
- ${APPDATA_PATH}/gitea/data:/var/lib/gitea
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:3000
|
- ${SERVER_PORT}:3000
|
||||||
- ${SSH_PORT}:22
|
- ${SSH_PORT}:22
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Internal network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing frontend network
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses pre-existing backend network
|
||||||
|
@@ -1,53 +1,79 @@
|
|||||||
|
# Gitea Git Service with PostgreSQL Database Configuration
|
||||||
services:
|
services:
|
||||||
|
# PostgreSQL Database Service
|
||||||
gitea_db:
|
gitea_db:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_db
|
container_name: gitea_db
|
||||||
image: docker.io/library/postgres:17.5
|
image: docker.io/library/postgres:17.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Database credentials and configuration
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER} # Database admin username
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database admin password
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB} # Database name for Gitea
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/gitea/db:/var/lib/postgresql/data
|
- ${APPDATA_PATH}/gitea/db:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${DB_PORT}:5432
|
- ${DB_PORT}:5432 # Maps host port to PostgreSQL
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health check configuration
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
||||||
start_period: 10s
|
start_period: 10s # Initial delay before checks
|
||||||
interval: 10s
|
interval: 10s # Check interval
|
||||||
timeout: 5s
|
timeout: 5s # Check timeout
|
||||||
retries: 3
|
retries: 3 # Allowed retries
|
||||||
|
|
||||||
|
# Gitea Server Service
|
||||||
gitea_server:
|
gitea_server:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gitea_server
|
container_name: gitea_server
|
||||||
image: docker.io/gitea/gitea:1.24.2-rootless
|
image: docker.io/gitea/gitea:1.24.2-rootless
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Service dependencies
|
||||||
depends_on:
|
depends_on:
|
||||||
gitea_db:
|
gitea_db:
|
||||||
condition: service_healthy
|
condition: service_healthy # Requires healthy database
|
||||||
user: ${PUID}:${PGID}
|
|
||||||
|
# Runtime configuration
|
||||||
|
user: ${PUID}:${PGID} # Runs as specified user/group
|
||||||
environment:
|
environment:
|
||||||
- GITEA__database__DB_TYPE=postgres
|
- GITEA__database__DB_TYPE=postgres # Database type
|
||||||
- GITEA__database__HOST=gitea_db:5432
|
- GITEA__database__HOST=gitea_db:5432 # Database host
|
||||||
- GITEA__database__NAME=${POSTGRES_DB}
|
- GITEA__database__NAME=${POSTGRES_DB} # Database name
|
||||||
- GITEA__database__USER=${POSTGRES_USER}
|
- GITEA__database__USER=${POSTGRES_USER} # Database username
|
||||||
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
|
- GITEA__database__PASSWD=${POSTGRES_PASSWORD} # Database password
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/gitea/config:/etc/gitea
|
- ${APPDATA_PATH}/gitea/config:/etc/gitea
|
||||||
- ${APPDATA_PATH}/gitea/data:/var/lib/gitea
|
- ${APPDATA_PATH}/gitea/data:/var/lib/gitea
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:3000
|
- ${SERVER_PORT}:3000 # Maps host port to Gitea web interface
|
||||||
- ${SSH_PORT}:22
|
- ${SSH_PORT}:22 # Maps host port to Gitea SSH
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing frontend network
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses pre-existing backend network
|
||||||
|
@@ -1,18 +1,29 @@
|
|||||||
|
# Gotify Push Notification Server Configuration
|
||||||
services:
|
services:
|
||||||
gotify:
|
gotify:
|
||||||
|
# Basic container configuration
|
||||||
container_name: gotify
|
container_name: gotify
|
||||||
image: ghcr.io/gotify/server:2.6.3
|
image: ghcr.io/gotify/server:2.6.3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Application environment configuration
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
- TZ=${TZ} # Timezone configuration
|
||||||
- GOTIFY_REGISTRATION=${GOTIFY_REGISTRATION}
|
- GOTIFY_REGISTRATION=${GOTIFY_REGISTRATION} # Allow/disallow new user registration
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/gotify/config:/app/data
|
- ${APPDATA_PATH}/gotify/config:/app/data # Configuration and database storage
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:80
|
- ${PORT}:80 # Maps host port to Gotify web interface
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing frontend network
|
||||||
|
@@ -1,39 +1,61 @@
|
|||||||
|
# Healthchecks.io Monitoring Service Configuration
|
||||||
services:
|
services:
|
||||||
healthchecks:
|
healthchecks:
|
||||||
|
# Basic container configuration
|
||||||
container_name: healthchecks
|
container_name: healthchecks
|
||||||
image: ghcr.io/linuxserver/healthchecks:3.10.20250705
|
image: ghcr.io/linuxserver/healthchecks:3.10.20250705
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# User and system configuration
|
||||||
environment:
|
environment:
|
||||||
- PUID=${PUID}
|
# System settings
|
||||||
- PGID=${PGID}
|
- PUID=${PUID} # User ID
|
||||||
- TZ=${TZ}
|
- PGID=${PGID} # Group ID
|
||||||
- SITE_ROOT=${SITE_ROOT}
|
- TZ=${TZ} # Timezone
|
||||||
- SITE_NAME=${SITE_NAME}
|
|
||||||
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}
|
# Site configuration
|
||||||
- EMAIL_HOST=${EMAIL_HOST}
|
- SITE_ROOT=${SITE_ROOT} # Base URL
|
||||||
- EMAIL_PORT=${EMAIL_PORT}
|
- SITE_NAME=${SITE_NAME} # Site display name
|
||||||
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
|
- SITE_LOGO_URL=${SITE_LOGO_URL} # Custom logo URL
|
||||||
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
|
|
||||||
- EMAIL_USE_TLS=${EMAIL_USE_TLS}
|
# Email server configuration
|
||||||
- EMAIL_USE_SSL=${EMAIL_USE_SSL}
|
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL} # Sender address
|
||||||
- SUPERUSER_EMAIL=${SUPERUSER_EMAIL}
|
- EMAIL_HOST=${EMAIL_HOST} # SMTP server
|
||||||
- SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD}
|
- EMAIL_PORT=${EMAIL_PORT} # SMTP port
|
||||||
- SECRET_KEY=${SECRET_KEY}
|
- EMAIL_HOST_USER=${EMAIL_HOST_USER} # SMTP username
|
||||||
- APPRISE_ENABLED=${APPRISE_ENABLED}
|
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD} # SMTP password
|
||||||
- REGISTRATION_OPEN=${REGISTRATION_OPEN}
|
- EMAIL_USE_TLS=${EMAIL_USE_TLS} # Enable TLS
|
||||||
- DEBUG=${DEBUG}
|
- EMAIL_USE_SSL=${EMAIL_USE_SSL} # Enable SSL
|
||||||
- SITE_LOGO_URL=${SITE_LOGO_URL}
|
- PING_EMAIL_DOMAIN=${PING_EMAIL_DOMAIN} # Email domain for pings
|
||||||
- PING_EMAIL_DOMAIN=${PING_EMAIL_DOMAIN}
|
|
||||||
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
|
# Authentication and security
|
||||||
- DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET}
|
- SUPERUSER_EMAIL=${SUPERUSER_EMAIL} # Admin email
|
||||||
|
- SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD} # Admin password
|
||||||
|
- SECRET_KEY=${SECRET_KEY} # Cryptographic secret
|
||||||
|
- REGISTRATION_OPEN=${REGISTRATION_OPEN} # Allow new registrations
|
||||||
|
|
||||||
|
# Integration settings
|
||||||
|
- APPRISE_ENABLED=${APPRISE_ENABLED} # Enable Apprise notifications
|
||||||
|
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID} # Discord integration
|
||||||
|
- DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET} # Discord secret
|
||||||
|
|
||||||
|
# Debugging
|
||||||
|
- DEBUG=${DEBUG} # Debug mode
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/healthchecks/config:/config
|
- ${APPDATA_PATH}/healthchecks/config:/config # Configuration storage
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:8000
|
- ${PORT}:8000 # Web interface port
|
||||||
- ${SMTP_PORT}:2525
|
- ${SMTP_PORT}:2525 # SMTP port for email
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network configuration
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing frontend network
|
||||||
|
@@ -1,16 +1,25 @@
|
|||||||
|
# Home Assistant Smart Home Platform Configuration
|
||||||
services:
|
services:
|
||||||
homeassistant:
|
homeassistant:
|
||||||
|
# Basic container configuration
|
||||||
container_name: homeassistant
|
container_name: homeassistant
|
||||||
image: docker.io/homeassistant/home-assistant:2025.7.1
|
image: docker.io/homeassistant/home-assistant:2025.7.1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Persistent storage and system configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/homeassistant/config:/config
|
- ${APPDATA_PATH}/homeassistant/config:/config # Configuration files
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro # Sync host timezone
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:8123
|
- ${PORT}:8123 # Web interface port
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing frontend network
|
||||||
|
@@ -28,7 +28,7 @@ services:
|
|||||||
|
|
||||||
# Network configuration
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
# External network definition
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
|
@@ -1,43 +1,65 @@
|
|||||||
|
# Nextcloud with PostgreSQL and Valkey Configuration
|
||||||
services:
|
services:
|
||||||
|
# PostgreSQL Database Service
|
||||||
nextcloud_db:
|
nextcloud_db:
|
||||||
|
# Basic container configuration
|
||||||
container_name: nextcloud_db
|
container_name: nextcloud_db
|
||||||
image: docker.io/library/postgres:17.5
|
image: docker.io/library/postgres:17.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Database credentials
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER} # Database username
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database password
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB} # Database name
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/nextcloud/db:/var/lib/postgresql/data
|
- ${APPDATA_PATH}/nextcloud/db:/var/lib/postgresql/data # Database files
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${DB_PORT}:5432
|
- ${DB_PORT}:5432 # PostgreSQL port
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health monitoring
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
||||||
start_period: 10s
|
start_period: 10s # Initial delay
|
||||||
interval: 10s
|
interval: 10s # Check frequency
|
||||||
timeout: 5s
|
timeout: 5s # Timeout duration
|
||||||
retries: 3
|
retries: 3 # Retry attempts
|
||||||
|
|
||||||
|
# Valkey (Redis-compatible) Cache Service
|
||||||
nextcloud_valkey:
|
nextcloud_valkey:
|
||||||
|
# Basic container configuration
|
||||||
container_name: nextcloud_valkey
|
container_name: nextcloud_valkey
|
||||||
image: docker.io/valkey/valkey:8.1.3
|
image: docker.io/valkey/valkey:8.1.3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: valkey-server --save 60 1 --requirepass ${VALKEY_PASSWORD}
|
|
||||||
|
# Runtime configuration
|
||||||
|
command: valkey-server --save 60 1 --requirepass ${VALKEY_PASSWORD} # Persistence and auth
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/nextcloud/valkey:/data
|
- ${APPDATA_PATH}/nextcloud/valkey:/data # Valkey data
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${VALKEY_PORT}:6379
|
- ${VALKEY_PORT}:6379 # Valkey port
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health monitoring
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "echo 'auth ${VALKEY_PASSWORD}\nping' | valkey-cli | grep PONG"]
|
test: ["CMD-SHELL", "echo 'auth ${VALKEY_PASSWORD}\nping' | valkey-cli | grep PONG"]
|
||||||
start_period: 20s
|
start_period: 20s # Initial delay
|
||||||
interval: 30s
|
interval: 30s # Check frequency
|
||||||
retries: 5
|
retries: 5 # Retry attempts
|
||||||
timeout: 3s
|
timeout: 3s # Timeout duration
|
||||||
|
|
||||||
|
# Nextcloud Application Service
|
||||||
nextcloud_app:
|
nextcloud_app:
|
||||||
image: docker.io/library/nextcloud:31.0.7
|
image: docker.io/library/nextcloud:31.0.7
|
||||||
container_name: nextcloud_app
|
container_name: nextcloud_app
|
||||||
@@ -47,51 +69,81 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
nextcloud_valkey:
|
nextcloud_valkey:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST=nextcloud_db:5432
|
# Database configuration
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_HOST=nextcloud_db:5432 # PostgreSQL host and port
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_DB=${POSTGRES_DB} # Database name
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_USER=${POSTGRES_USER} # Database username
|
||||||
- REDIS_HOST=nextcloud_valkey
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database password
|
||||||
- REDIS_HOST_PORT=6379
|
|
||||||
- REDIS_HOST_PASSWORD=${VALKEY_PASSWORD}
|
# Redis/Valkey cache configuration
|
||||||
- PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}
|
- REDIS_HOST=nextcloud_valkey # Valkey hostname
|
||||||
- PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}
|
- REDIS_HOST_PORT=6379 # Valkey port
|
||||||
- APACHE_DISABLE_REWRITE_IP=${APACHE_DISABLE_REWRITE_IP}
|
- REDIS_HOST_PASSWORD=${VALKEY_PASSWORD} # Valkey authentication
|
||||||
|
|
||||||
|
# PHP performance tuning
|
||||||
|
- PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT} # Memory allocation
|
||||||
|
- PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT} # Max upload size
|
||||||
|
|
||||||
|
# Security settings
|
||||||
|
- APACHE_DISABLE_REWRITE_IP=${APACHE_DISABLE_REWRITE_IP} # IP address handling
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/nextcloud/app:/var/www/html
|
- ${APPDATA_PATH}/nextcloud/app:/var/www/html
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:80
|
- ${APP_PORT}:80
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Nextcloud Cron Service
|
||||||
nextcloud_cron:
|
nextcloud_cron:
|
||||||
image: docker.io/library/nextcloud:31.0.7
|
image: docker.io/library/nextcloud:31.0.7
|
||||||
container_name: nextcloud_cron
|
container_name: nextcloud_cron
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- nextcloud_app
|
- nextcloud_app
|
||||||
|
|
||||||
|
# Entry point
|
||||||
entrypoint: /cron.sh
|
entrypoint: /cron.sh
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST=nextcloud_db:5432
|
# Database configuration
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_HOST=nextcloud_db:5432 # PostgreSQL host and port
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_DB=${POSTGRES_DB} # Database name
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_USER=${POSTGRES_USER} # Database username
|
||||||
- REDIS_HOST=nextcloud_valkey
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database password
|
||||||
- REDIS_HOST_PORT=6379
|
|
||||||
- REDIS_HOST_PASSWORD=${VALKEY_PASSWORD}
|
# Redis/Valkey cache configuration
|
||||||
- PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}
|
- REDIS_HOST=nextcloud_valkey # Valkey hostname
|
||||||
- PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}
|
- REDIS_HOST_PORT=6379 # Valkey port
|
||||||
- APACHE_DISABLE_REWRITE_IP=${APACHE_DISABLE_REWRITE_IP}
|
- REDIS_HOST_PASSWORD=${VALKEY_PASSWORD} # Valkey authentication
|
||||||
|
|
||||||
|
# PHP performance tuning
|
||||||
|
- PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT} # Memory allocation
|
||||||
|
- PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT} # Max upload size
|
||||||
|
|
||||||
|
# Security settings
|
||||||
|
- APACHE_DISABLE_REWRITE_IP=${APACHE_DISABLE_REWRITE_IP} # IP address handling
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/nextcloud/app:/var/www/html
|
- ${APPDATA_PATH}/nextcloud/app:/var/www/html
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# External network definitions
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
|
@@ -1,58 +1,94 @@
|
|||||||
|
# OpenGist with MariaDB Configuration
|
||||||
services:
|
services:
|
||||||
|
# MariaDB Database Service
|
||||||
opengist_db:
|
opengist_db:
|
||||||
|
# Basic container configuration
|
||||||
container_name: opengist_db
|
container_name: opengist_db
|
||||||
image: docker.io/library/mariadb:11.8.2
|
image: docker.io/library/mariadb:11.8.2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Database performance tuning
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
||||||
|
|
||||||
|
# Database credentials
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # Root password
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
- MYSQL_USER=${MYSQL_USER} # Application username
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD} # Application password
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE} # Database name
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/opengist/db:/var/lib/mysql
|
- ${APPDATA_PATH}/opengist/db:/var/lib/mysql # Database files
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${DB_PORT}:3306
|
- ${DB_PORT}:3306 # MariaDB port
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health monitoring
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||||
interval: 10s
|
interval: 10s # Check frequency
|
||||||
timeout: 5s
|
timeout: 5s # Timeout duration
|
||||||
retries: 3
|
retries: 3 # Retry attempts
|
||||||
start_period: 10s
|
start_period: 10s # Initial delay
|
||||||
|
|
||||||
|
# OpenGist Application Service
|
||||||
opengist_server:
|
opengist_server:
|
||||||
|
# Basic container configuration
|
||||||
container_name: opengist_server
|
container_name: opengist_server
|
||||||
image: ghcr.io/thomiceli/opengist:1.10.0
|
image: ghcr.io/thomiceli/opengist:1.10.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Service dependencies
|
||||||
depends_on:
|
depends_on:
|
||||||
opengist_db:
|
opengist_db:
|
||||||
condition: service_healthy
|
condition: service_healthy # Wait for healthy database
|
||||||
|
|
||||||
|
# Runtime configuration
|
||||||
environment:
|
environment:
|
||||||
- UID=${UID}
|
# User and group IDs for file permissions
|
||||||
- GID=${GID}
|
- UID=${UID} # User ID for file permissions
|
||||||
- OG_DB_URI=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@opengist_db:3306/${MYSQL_DATABASE}
|
- GID=${GID} # Group ID for file permissions
|
||||||
- OG_EXTERNAL_URL=${OG_EXTERNAL_URL}
|
|
||||||
- OG_SECRET_KEY=${OG_SECRET_KEY}
|
# Database connection
|
||||||
- OG_HTTP_GIT_ENABLED=${OG_HTTP_GIT_ENABLED}
|
- OG_DB_URI=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@opengist_db:3306/${MYSQL_DATABASE} # MariaDB connection string
|
||||||
- OG_SSH_GIT_ENABLED=${OG_SSH_GIT_ENABLED}
|
|
||||||
- OG_GITEA_CLIENT_KEY=${OG_GITEA_CLIENT_KEY}
|
# Application settings
|
||||||
- OG_GITEA_SECRET=${OG_GITEA_SECRET}
|
- OG_EXTERNAL_URL=${OG_EXTERNAL_URL} # Public URL for OpenGist
|
||||||
- OG_GITEA_URL=${OG_GITEA_URL}
|
- OG_SECRET_KEY=${OG_SECRET_KEY} # Encryption key for sessions
|
||||||
- OG_GITEA_NAME=${OG_GITEA_NAME}
|
|
||||||
- OG_CUSTOM_STATIC_LINK_0_NAME=${OG_CUSTOM_STATIC_LINK_0_NAME}
|
# Git protocol configuration
|
||||||
- OG_CUSTOM_STATIC_LINK_0_PATH=${OG_CUSTOM_STATIC_LINK_0_PATH}
|
- OG_HTTP_GIT_ENABLED=${OG_HTTP_GIT_ENABLED} # Enable HTTP Git access
|
||||||
|
- OG_SSH_GIT_ENABLED=${OG_SSH_GIT_ENABLED} # Enable SSH Git access
|
||||||
|
|
||||||
|
# Gitea integration
|
||||||
|
- OG_GITEA_CLIENT_KEY=${OG_GITEA_CLIENT_KEY} # OAuth client key
|
||||||
|
- OG_GITEA_SECRET=${OG_GITEA_SECRET} # OAuth secret
|
||||||
|
- OG_GITEA_URL=${OG_GITEA_URL} # Gitea instance URL
|
||||||
|
- OG_GITEA_NAME=${OG_GITEA_NAME} # Gitea application name
|
||||||
|
|
||||||
|
# Customization
|
||||||
|
- OG_CUSTOM_STATIC_LINK_0_NAME=${OG_CUSTOM_STATIC_LINK_0_NAME} # Custom link name
|
||||||
|
- OG_CUSTOM_STATIC_LINK_0_PATH=${OG_CUSTOM_STATIC_LINK_0_PATH} # Custom link path
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/opengist/data:/opengist
|
- ${APPDATA_PATH}/opengist/data:/opengist
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:6157
|
- ${SERVER_PORT}:6157 # Web interface port
|
||||||
|
- 2222:2222 # SSH port for Git operations
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# External network definitions
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
|
@@ -1,57 +1,90 @@
|
|||||||
|
# OpenGist Git Snippet Service Configuration
|
||||||
services:
|
services:
|
||||||
|
# PostgreSQL Database Service
|
||||||
opengist_db:
|
opengist_db:
|
||||||
|
# Basic container configuration
|
||||||
container_name: opengist_db
|
container_name: opengist_db
|
||||||
image: docker.io/library/postgres:17.5
|
image: docker.io/library/postgres:17.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Database credentials
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER} # Database username
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database password
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB} # Database name
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/opengist/db:/var/lib/postgresql/data
|
- ${APPDATA_PATH}/opengist/db:/var/lib/postgresql/data # Database files
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${DB_PORT}:5432
|
- ${DB_PORT}:5432 # PostgreSQL port
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health monitoring
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
||||||
interval: 10s
|
interval: 10s # Check frequency
|
||||||
timeout: 5s
|
timeout: 5s # Timeout duration
|
||||||
retries: 3
|
retries: 3 # Retry attempts
|
||||||
start_period: 10s
|
start_period: 10s # Initial delay
|
||||||
|
|
||||||
|
# OpenGist Application Service
|
||||||
opengist_server:
|
opengist_server:
|
||||||
|
# Basic container configuration
|
||||||
container_name: opengist_server
|
container_name: opengist_server
|
||||||
image: ghcr.io/thomiceli/opengist:1.10.0
|
image: ghcr.io/thomiceli/opengist:1.10.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Service dependencies
|
||||||
depends_on:
|
depends_on:
|
||||||
opengist_db:
|
opengist_db:
|
||||||
condition: service_healthy
|
condition: service_healthy # Wait for healthy database
|
||||||
|
|
||||||
|
# Runtime configuration
|
||||||
environment:
|
environment:
|
||||||
- UID=${UID}
|
# User and group IDs for file permissions
|
||||||
- GID=${GID}
|
- UID=${UID} # User ID for file permissions
|
||||||
- OG_DB_URI=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@opengist_db:5432/${POSTGRES_DB}
|
- GID=${GID} # Group ID for file permissions
|
||||||
- OG_EXTERNAL_URL=${OG_EXTERNAL_URL}
|
|
||||||
- OG_SECRET_KEY=${OG_SECRET_KEY}
|
# Database connection
|
||||||
- OG_HTTP_GIT_ENABLED=${OG_HTTP_GIT_ENABLED}
|
- OG_DB_URI=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@opengist_db:5432/${POSTGRES_DB} # PostgreSQL connection string
|
||||||
- OG_SSH_GIT_ENABLED=${OG_SSH_GIT_ENABLED}
|
|
||||||
- OG_GITEA_CLIENT_KEY=${OG_GITEA_CLIENT_KEY}
|
# Application settings
|
||||||
- OG_GITEA_SECRET=${OG_GITEA_SECRET}
|
- OG_EXTERNAL_URL=${OG_EXTERNAL_URL} # Public URL for OpenGist
|
||||||
- OG_GITEA_URL=${OG_GITEA_URL}
|
- OG_SECRET_KEY=${OG_SECRET_KEY} # Encryption key for sessions
|
||||||
- OG_GITEA_NAME=${OG_GITEA_NAME}
|
|
||||||
- OG_CUSTOM_STATIC_LINK_0_NAME=${OG_CUSTOM_STATIC_LINK_0_NAME}
|
# Git protocol configuration
|
||||||
- OG_CUSTOM_STATIC_LINK_0_PATH=${OG_CUSTOM_STATIC_LINK_0_PATH}
|
- OG_HTTP_GIT_ENABLED=${OG_HTTP_GIT_ENABLED} # Enable HTTP Git access
|
||||||
|
- OG_SSH_GIT_ENABLED=${OG_SSH_GIT_ENABLED} # Enable SSH Git access
|
||||||
|
|
||||||
|
# Gitea integration
|
||||||
|
- OG_GITEA_CLIENT_KEY=${OG_GITEA_CLIENT_KEY} # OAuth client key
|
||||||
|
- OG_GITEA_SECRET=${OG_GITEA_SECRET} # OAuth secret
|
||||||
|
- OG_GITEA_URL=${OG_GITEA_URL} # Gitea instance URL
|
||||||
|
- OG_GITEA_NAME=${OG_GITEA_NAME} # Gitea application name
|
||||||
|
|
||||||
|
# Customization
|
||||||
|
- OG_CUSTOM_STATIC_LINK_0_NAME=${OG_CUSTOM_STATIC_LINK_0_NAME} # Custom link name
|
||||||
|
- OG_CUSTOM_STATIC_LINK_0_PATH=${OG_CUSTOM_STATIC_LINK_0_PATH} # Custom link path
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/opengist/data:/opengist
|
- ${APPDATA_PATH}/opengist/data:/opengist
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:6157
|
- ${SERVER_PORT}:6157 # Web interface port
|
||||||
- 2222:2222
|
- 2222:2222 # SSH port for Git operations
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# External network definitions
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
|
@@ -1,22 +1,31 @@
|
|||||||
|
# Palmr File Transfer Service Configuration
|
||||||
services:
|
services:
|
||||||
palmr:
|
palmr:
|
||||||
|
# Basic container configuration
|
||||||
container_name: palmr
|
container_name: palmr
|
||||||
image: docker.io/kyantech/palmr:v3.1.1-beta
|
image: docker.io/kyantech/palmr:v3.1.1-beta
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Application settings
|
||||||
environment:
|
environment:
|
||||||
- ENABLE_S3=${ENABLE_S3}
|
- ENABLE_S3=${ENABLE_S3} # Enable/Disable S3-compatible storage backend
|
||||||
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
- ENCRYPTION_KEY=${ENCRYPTION_KEY} # Data encryption key for security
|
||||||
- SECURE_SITE=${SECURE_SITE}
|
- SECURE_SITE=${SECURE_SITE} # Enable/Disable HTTPS security features
|
||||||
- PALMR_UID=${PUID}
|
- PALMR_UID=${PUID} # User ID for proper file permissions
|
||||||
- PALMR_GID=${PGID}
|
- PALMR_GID=${PGID} # Group ID for proper file permissions
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/palmr/db:/app/server/prisma
|
- ${APPDATA_PATH}/palmr/db:/app/server/prisma # Transfer metadata database
|
||||||
- ${DATA_PATH}/palmr/data:/app/server
|
- ${DATA_PATH}/palmr/data:/app/server # File storage directory
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:5487
|
- ${PORT}:5487 # Web interface port
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
|
@@ -1,10 +1,16 @@
|
|||||||
|
# Portainer Agent Configuration
|
||||||
services:
|
services:
|
||||||
portainer-agent:
|
portainer-agent:
|
||||||
|
# Basic container configuration
|
||||||
container_name: portainer-agent
|
container_name: portainer-agent
|
||||||
image: docker.io/portainer/agent:latest
|
image: docker.io/portainer/agent:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# System access configuration
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
||||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
- /var/lib/docker/volumes:/var/lib/docker/volumes # Volume management
|
||||||
|
|
||||||
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- 9001:9001
|
- 9001:9001 # Agent communication port
|
||||||
|
@@ -1,12 +1,18 @@
|
|||||||
|
# Portainer Container Management Configuration
|
||||||
services:
|
services:
|
||||||
portainer:
|
portainer:
|
||||||
|
# Basic container configuration
|
||||||
container_name: portainer
|
container_name: portainer
|
||||||
image: docker.io/portainer/portainer-ee:latest
|
image: docker.io/portainer/portainer-ee:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Persistent storage and system access configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data # Portainer configuration and database
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro # Sync host timezone
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
||||||
|
|
||||||
|
# Network ports configuration
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000 # Edge agent communication port
|
||||||
- 9443:9443
|
- 9443:9443 # Web UI HTTPS port
|
||||||
|
@@ -1,36 +1,53 @@
|
|||||||
|
# Radicale CalDAV/CardDAV Server Configuration
|
||||||
services:
|
services:
|
||||||
radicale:
|
radicale:
|
||||||
|
# Basic container configuration
|
||||||
container_name: radicale
|
container_name: radicale
|
||||||
image: docker.io/tomsquest/docker-radicale:3.5.4.0
|
image: docker.io/tomsquest/docker-radicale:3.5.4.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
init: true
|
|
||||||
read_only: true
|
# Security hardening
|
||||||
|
init: true # Use init process for proper signal handling
|
||||||
|
read_only: true # Read-only filesystem for security
|
||||||
|
|
||||||
|
# Minimal required capabilities
|
||||||
cap_add:
|
cap_add:
|
||||||
- CHOWN
|
- CHOWN # Required for file ownership changes
|
||||||
- KILL
|
- KILL # Required for process management
|
||||||
- SETGID
|
- SETGID # Required for group permissions
|
||||||
- SETUID
|
- SETUID # Required for user permissions
|
||||||
|
|
||||||
|
# Security restrictions
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL # Drop all capabilities by default
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true # Prevent privilege escalation
|
||||||
|
|
||||||
|
# Resource limits
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 256M
|
memory: 256M # Memory limit
|
||||||
pids: 50
|
pids: 50 # Maximum number of processes
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/radicale/data:/data
|
- ${APPDATA_PATH}/radicale/data:/data # Calendar and contact data
|
||||||
- ${APPDATA_PATH}/radicale/config:/config:ro
|
- ${APPDATA_PATH}/radicale/config:/config:ro # Read-only configuration
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:5232
|
- ${PORT}:5232 # DAV service port
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
healthcheck:
|
|
||||||
test: curl -f http://127.0.0.1:5232 || exit 1
|
|
||||||
interval: 30s
|
|
||||||
retries: 3
|
|
||||||
|
|
||||||
|
# Health monitoring
|
||||||
|
healthcheck:
|
||||||
|
test: curl -f http://127.0.0.1:5232 || exit 1 # Simple HTTP check
|
||||||
|
interval: 30s # Check every 30 seconds
|
||||||
|
retries: 3 # Allow 3 failures before marking unhealthy
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses pre-existing network
|
||||||
|
@@ -1,26 +1,35 @@
|
|||||||
|
# Stirling PDF Service Configuration
|
||||||
services:
|
services:
|
||||||
stirling-pdf:
|
stirling-pdf:
|
||||||
|
# Basic container configuration
|
||||||
container_name: stirling-pdf
|
container_name: stirling-pdf
|
||||||
image: ghcr.io/stirling-tools/stirling-pdf:1.0.2-fat
|
image: ghcr.io/stirling-tools/stirling-pdf:1.0.2-fat # Full-featured image
|
||||||
restart: unless-stopped
|
restart: unless-stopped # Auto-recover from crashes
|
||||||
|
|
||||||
|
# Application settings
|
||||||
environment:
|
environment:
|
||||||
- DISABLE_ADDITIONAL_FEATURES=${DISABLE_ADDITIONAL_FEATURES}
|
- DISABLE_ADDITIONAL_FEATURES=${DISABLE_ADDITIONAL_FEATURES} # Toggle extra features
|
||||||
- DOCKER_ENABLE_SECURITY=${DOCKER_ENABLE_SECURITY}
|
- DOCKER_ENABLE_SECURITY=${DOCKER_ENABLE_SECURITY} # Enable security restrictions
|
||||||
- SECURITY_ENABLELOGIN=${SECURITY_ENABLELOGIN}
|
- SECURITY_ENABLELOGIN=${SECURITY_ENABLELOGIN} # Require authentication
|
||||||
- LANGS=${LANGS}
|
- LANGS=${LANGS} # Supported languages for OCR
|
||||||
- SHOW_SURVEY=false
|
- SHOW_SURVEY=false # Disable user surveys
|
||||||
- DISABLE_PIXEL=true
|
- DISABLE_PIXEL=true # Disable pixel tracking
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_DATA}/stirling-pdf/training_data:/usr/share/tessdata
|
- ${APPDATA_DATA}/stirling-pdf/training_data:/usr/share/tessdata # OCR training data
|
||||||
- ${APPDATA_DATA}/stirling-pdf/config:/configs
|
- ${APPDATA_DATA}/stirling-pdf/config:/configs # Configuration files
|
||||||
- ${APPDATA_DATA}/stirling-pdf/custom_files:/customFiles/
|
- ${APPDATA_DATA}/stirling-pdf/custom_files:/customFiles/ # User uploads
|
||||||
- ${APPDATA_DATA}/stirling-pdf/logs:/logs/
|
- ${APPDATA_DATA}/stirling-pdf/logs:/logs/ # Application logs
|
||||||
- ${APPDATA_DATA}/stirling-pdf/pipeline:/pipeline/
|
- ${APPDATA_DATA}/stirling-pdf/pipeline:/pipeline/ # Processing pipelines
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:8080
|
- ${PORT}:8080 # Web interface port
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses existing Docker network
|
||||||
|
@@ -1,18 +1,27 @@
|
|||||||
|
# SyncYomi Configuration - Manga/Comic Reader Sync Service
|
||||||
services:
|
services:
|
||||||
syncyomi:
|
syncyomi:
|
||||||
|
# Basic container configuration
|
||||||
container_name: syncyomi
|
container_name: syncyomi
|
||||||
image: ghcr.io/syncyomi/syncyomi:v1.1.4
|
image: ghcr.io/syncyomi/syncyomi:v1.1.4
|
||||||
restart: unless-stopped
|
restart: unless-stopped # Auto-restart on failure
|
||||||
|
|
||||||
|
# Application settings
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
- TZ=${TZ} # Timezone for proper timestamp handling
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/syncyomi/config:/config
|
- ${APPDATA_PATH}/syncyomi/config:/config # Configuration files
|
||||||
- ${APPDATA_PATH}/syncyomi/log:/log
|
- ${APPDATA_PATH}/syncyomi/log:/log # Application logs
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:8282
|
- ${PORT}:8282 # Web interface port
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses existing Docker network
|
||||||
|
@@ -1,15 +1,22 @@
|
|||||||
|
# Uptime Kuma Configuration - Status Monitoring Service
|
||||||
services:
|
services:
|
||||||
uptime-kuma:
|
uptime-kuma:
|
||||||
|
# Basic container configuration
|
||||||
container_name: uptime-kuma
|
container_name: uptime-kuma
|
||||||
image: docker.io/louislam/uptime-kuma:1.23.16
|
image: docker.io/louislam/uptime-kuma:1.23.16
|
||||||
restart: unless-stopped
|
restart: unless-stopped # Auto-recover from crashes
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/uptime-kuma/config:/app/data
|
- ${APPDATA_PATH}/uptime-kuma/config:/app/data # Monitoring configuration and data
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:3001
|
- ${PORT}:3001 # Web dashboard port
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
|
|
||||||
|
# External network definition
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses existing Docker network
|
||||||
|
@@ -1,53 +1,71 @@
|
|||||||
|
# Vaultwarden Configuration - (Bitwarden-compatible) Password Manager
|
||||||
services:
|
services:
|
||||||
vaultwarden_db:
|
vaultwarden_db:
|
||||||
|
# PostgreSQL Database Configuration
|
||||||
container_name: vaultwarden_db
|
container_name: vaultwarden_db
|
||||||
image: docker.io/library/postgres:17.5
|
image: docker.io/library/postgres:17.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped # Auto-recover from crashes
|
||||||
|
|
||||||
|
# Database credentials
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER} # Database username
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database password
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB} # Database name
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/vaultwarden/db:/var/lib/postgresql/data
|
- ${APPDATA_PATH}/vaultwarden/db:/var/lib/postgresql/data # Database files
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${DB_PORT}:5432
|
- ${DB_PORT}:5432 # PostgreSQL default port
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# Health monitoring
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"] # Connection check
|
||||||
interval: 30s
|
interval: 30s # Check every 30 seconds
|
||||||
timeout: 5s
|
timeout: 5s # Maximum check duration
|
||||||
retries: 5
|
retries: 5 # Allow 5 failures before marking unhealthy
|
||||||
start_period: 20s
|
start_period: 20s # Initial grace period
|
||||||
|
|
||||||
vaultwarden_server:
|
vaultwarden_server:
|
||||||
container_name: vaultwarden_server
|
container_name: vaultwarden_server
|
||||||
image: ghcr.io/dani-garcia/vaultwarden:1.34.1
|
# Container configuration
|
||||||
restart: unless-stopped
|
image: ghcr.io/dani-garcia/vaultwarden:1.34.1 # Official Vaultwarden image
|
||||||
|
restart: unless-stopped # Auto-restart on failure
|
||||||
depends_on:
|
depends_on:
|
||||||
vaultwarden_db:
|
vaultwarden_db:
|
||||||
condition: service_healthy
|
condition: service_healthy # Wait for healthy database
|
||||||
|
|
||||||
|
# Application settings
|
||||||
environment:
|
environment:
|
||||||
- PUID=${PUID}
|
- PUID=${PUID} # User ID for file permissions
|
||||||
- PGID=${PGID}
|
- PGID=${PGID} # Group ID for file permissions
|
||||||
- TZ=${TZ}
|
- TZ=${TZ} # Timezone configuration
|
||||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@vaultwarden_db:5432/${POSTGRES_DB}
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@vaultwarden_db:5432/${POSTGRES_DB} # DB connection
|
||||||
- WEBSOCKET_ENABLED=${WEBSOCKET_ENABLED}
|
- WEBSOCKET_ENABLED=${WEBSOCKET_ENABLED} # Real-time updates
|
||||||
- LOG_FILE=/data/vaultwarden.log
|
- LOG_FILE=/data/vaultwarden.log # Log file location
|
||||||
# Uncomment and set these only on first run
|
# Uncomment and set these only on first run
|
||||||
# - DOMAIN=${DOMAIN}
|
# - DOMAIN=${DOMAIN} # Domain Name
|
||||||
# - SIGNUPS_ALLOWED=${SIGNUPS_ALLOWED}
|
# - SIGNUPS_ALLOWED=${SIGNUPS_ALLOWED} # User registration
|
||||||
# - ADMIN_TOKEN=${ADMIN_TOKEN}
|
# - ADMIN_TOKEN=${ADMIN_TOKEN} # Admin interface access token
|
||||||
|
|
||||||
|
# Persistent storage configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/vaultwarden/data:/data
|
- ${APPDATA_PATH}/vaultwarden/data:/data # Vault data storage
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:80
|
- ${SERVER_PORT}:80 # Web interface port
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend # Connects to frontend network
|
||||||
- backend
|
- backend # Connects to backend network
|
||||||
|
|
||||||
|
# External network definitions
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
external: true
|
external: true # Uses existing frontend network
|
||||||
backend:
|
backend:
|
||||||
external: true
|
external: true # Uses existing backend network
|
||||||
|
Reference in New Issue
Block a user