From df33a11210b7b60486bf3004278911c21ffc9699 Mon Sep 17 00:00:00 2001 From: Ishan Karmakar Date: Sat, 6 Jun 2026 11:05:01 -0500 Subject: [PATCH] Update docker-compose for our purposes --- docker-compose.yaml | 98 ++++++--------------------------------------- 1 file changed, 12 insertions(+), 86 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 51fb8f6..3d7269c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,12 +5,12 @@ services: restart: always environment: # === Required Settings - MAIN_URL: 'http://localhost:4007' - FRONTEND_URL: 'http://localhost:4007' - NEXT_PUBLIC_BACKEND_URL: 'http://localhost:4007/api' - JWT_SECRET: 'random string that is unique to every install - just type random characters here!' - DATABASE_URL: 'postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local' - REDIS_URL: 'redis://postiz-redis:6379' + MAIN_URL: 'https://postiz.internal.vyntehome.com' + FRONTEND_URL: 'https://postiz.internal.vyntehome.com' + NEXT_PUBLIC_BACKEND_URL: 'https://postiz.internal.vyntehome.com/api' + JWT_SECRET: ${JWT_SECRET} + DATABASE_URL: ${DATABASE_URL} + REDIS_URL: ${REDIS_URL} BACKEND_INTERNAL_URL: 'http://localhost:3000' TEMPORAL_ADDRESS: "temporal:7233" IS_GENERAL: 'true' @@ -113,7 +113,7 @@ services: - postiz-config:/config/ - postiz-uploads:/uploads/ ports: - - "4007:5000" + - "4000:5000" networks: - postiz-network - temporal-network @@ -124,54 +124,15 @@ services: retries: 5 start_period: 120s depends_on: - postiz-postgres: - condition: service_healthy - postiz-redis: - condition: service_healthy temporal: condition: service_healthy - postiz-postgres: - image: postgres:17-alpine - container_name: postiz-postgres - restart: always - environment: - POSTGRES_PASSWORD: postiz-password - POSTGRES_USER: postiz-user - POSTGRES_DB: postiz-db-local - volumes: - - postgres-volume:/var/lib/postgresql/data - networks: - - postiz-network - healthcheck: - test: ["CMD-SHELL", "pg_isready -U postiz-user -d postiz-db-local"] - interval: 10s - timeout: 5s - retries: 5 - start_period: 10s - postiz-redis: - image: redis:7.2 - container_name: postiz-redis - restart: always - healthcheck: - test: ["CMD-SHELL", "redis-cli ping | grep -q PONG"] - interval: 10s - timeout: 5s - retries: 5 - start_period: 5s - volumes: - - postiz-redis-data:/data - networks: - - postiz-network - # For Application Monitoring / Debugging spotlight: profiles: [debug] pull_policy: always container_name: spotlight restart: unless-stopped - ports: - - 8969:8969/tcp image: ghcr.io/getsentry/spotlight:latest networks: - postiz-network @@ -204,43 +165,19 @@ services: volumes: - temporal-elasticsearch-data:/usr/share/elasticsearch/data - temporal-postgresql: - container_name: temporal-postgresql - image: postgres:16 - restart: always - environment: - POSTGRES_PASSWORD: temporal - POSTGRES_USER: temporal - networks: - - temporal-network - expose: - - 5432 - healthcheck: - test: ["CMD-SHELL", "pg_isready -U temporal"] - interval: 10s - timeout: 5s - retries: 5 - start_period: 10s - volumes: - - temporal-postgres-data:/var/lib/postgresql/data - temporal: container_name: temporal restart: always - ports: - - '7233:7233' image: temporalio/auto-setup:1.28.1 depends_on: - temporal-postgresql: - condition: service_healthy temporal-elasticsearch: condition: service_healthy environment: - - DB=postgres12 - - DB_PORT=5432 - - POSTGRES_USER=temporal - - POSTGRES_PWD=temporal - - POSTGRES_SEEDS=temporal-postgresql + - DB=${TEMPORAL_DB} + - DB_PORT=${TEMPORAL_DB_PORT} + - POSTGRES_USER=${TEMPORAL_DB_USER} + - POSTGRES_PWD=${TEMPORAL_DB_PWD} + - POSTGRES_SEEDS=${TEMPORAL_DB_SEEDS} - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml - ENABLE_ES=true - ES_SEEDS=temporal-elasticsearch @@ -283,8 +220,6 @@ services: - TEMPORAL_CORS_ORIGINS=http://127.0.0.1:3000 networks: - temporal-network - ports: - - '8080:8080' healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"] interval: 30s @@ -296,21 +231,12 @@ services: condition: service_healthy volumes: - postgres-volume: - external: false - - postiz-redis-data: - external: false - postiz-config: external: false postiz-uploads: external: false - temporal-postgres-data: - external: false - temporal-elasticsearch-data: external: false