Update docker-compose for our purposes
CI / Test Suite (push) Waiting to run
CI / Lint & Type Check (push) Waiting to run
Docker Build and Publish / prepare (push) Waiting to run
Docker Build and Publish / build (linux/amd64, ubuntu-latest) (push) Blocked by required conditions
Docker Build and Publish / build (linux/arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
Docker Build and Publish / merge (push) Blocked by required conditions
Release Please / release-please (push) Waiting to run
CI / Test Suite (push) Waiting to run
CI / Lint & Type Check (push) Waiting to run
Docker Build and Publish / prepare (push) Waiting to run
Docker Build and Publish / build (linux/amd64, ubuntu-latest) (push) Blocked by required conditions
Docker Build and Publish / build (linux/arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
Docker Build and Publish / merge (push) Blocked by required conditions
Release Please / release-please (push) Waiting to run
This commit is contained in:
+17
-58
@@ -27,39 +27,6 @@ services:
|
|||||||
# Infrastructure Services
|
# Infrastructure Services
|
||||||
# ============================================
|
# ============================================
|
||||||
|
|
||||||
postgres:
|
|
||||||
image: postgres:16-alpine
|
|
||||||
container_name: plunk-postgres
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: plunk
|
|
||||||
POSTGRES_USER: plunk
|
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme123}
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD-SHELL", "pg_isready -U plunk" ]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
networks:
|
|
||||||
- plunk
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:7-alpine
|
|
||||||
container_name: plunk-redis
|
|
||||||
restart: unless-stopped
|
|
||||||
command: redis-server --appendonly yes
|
|
||||||
volumes:
|
|
||||||
- redis_data:/data
|
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD", "redis-cli", "ping" ]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
networks:
|
|
||||||
- plunk
|
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: minio/minio:latest
|
image: minio/minio:latest
|
||||||
container_name: plunk-minio
|
container_name: plunk-minio
|
||||||
@@ -70,10 +37,10 @@ services:
|
|||||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-plunkminiopass}
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-plunkminiopass}
|
||||||
volumes:
|
volumes:
|
||||||
- minio_data:/data
|
- minio_data:/data
|
||||||
ports:
|
# ports:
|
||||||
# Expose Minio API (for S3 operations) and Console (for web UI)
|
# # Expose Minio API (for S3 operations) and Console (for web UI)
|
||||||
- "${MINIO_API_PORT:-9000}:9000"
|
# - "${MINIO_API_PORT:-9000}:9000"
|
||||||
- "${MINIO_CONSOLE_PORT:-9001}:9001"
|
# - "${MINIO_CONSOLE_PORT:-9001}:9001"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
|
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -88,13 +55,13 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: serve
|
command: serve
|
||||||
environment:
|
environment:
|
||||||
- TZ=UTC
|
- TZ=CST
|
||||||
volumes:
|
volumes:
|
||||||
- ntfy_cache:/var/cache/ntfy
|
- ntfy_cache:/var/cache/ntfy
|
||||||
- ntfy_etc:/etc/ntfy
|
- ntfy_etc:/etc/ntfy
|
||||||
ports:
|
# ports:
|
||||||
# Expose ntfy web UI and API
|
# # Expose ntfy web UI and API
|
||||||
- "${NTFY_PORT:-8080}:80"
|
# - "${NTFY_PORT:-8080}:80"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1" ]
|
test: [ "CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -118,11 +85,11 @@ services:
|
|||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
DATABASE_URL: postgresql://plunk:${DB_PASSWORD:-changeme123}@postgres:5432/plunk
|
DATABASE_URL: ${DATABASE_URL}
|
||||||
DIRECT_DATABASE_URL: postgresql://plunk:${DB_PASSWORD:-changeme123}@postgres:5432/plunk
|
DIRECT_DATABASE_URL: ${DIRECT_DATABASE_URL}
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
REDIS_URL: redis://redis:6379
|
REDIS_URL: ${REDIS_URL}
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
@@ -214,19 +181,15 @@ services:
|
|||||||
|
|
||||||
ports:
|
ports:
|
||||||
# SMTP ports (for email relay)
|
# SMTP ports (for email relay)
|
||||||
- "${PORT_SECURE:-465}:465" # SMTPS (implicit TLS)
|
# - "${PORT_SECURE:-465}:465" # SMTPS (implicit TLS)
|
||||||
- "${PORT_SUBMISSION:-587}:587" # SMTP Submission (STARTTLS)
|
# - "${PORT_SUBMISSION:-587}:587" # SMTP Submission (STARTTLS)
|
||||||
# Optional: Expose individual service ports for debugging
|
# Optional: Expose individual service ports for debugging
|
||||||
# - "8080:8080" # API
|
- "6000:8080" # API
|
||||||
# - "3000:3000" # Web
|
- "6001:3000" # Web
|
||||||
# - "4000:4000" # Landing
|
- "6002:4000" # Landing
|
||||||
# - "1000:1000" # Wiki
|
# - "6003:1000" # Wiki
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
minio:
|
minio:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ntfy:
|
ntfy:
|
||||||
@@ -244,10 +207,6 @@ services:
|
|||||||
- plunk
|
- plunk
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
|
||||||
driver: local
|
|
||||||
redis_data:
|
|
||||||
driver: local
|
|
||||||
minio_data:
|
minio_data:
|
||||||
driver: local
|
driver: local
|
||||||
plunk_data:
|
plunk_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user