Advertisement
Guest User

Postiz Docker Compose File

a guest
Jan 26th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.93 KB | None | 0 0
  1. version: "3.8"
  2. services:
  3.   postiz:
  4.     image: ghcr.io/gitroomhq/postiz-app:latest
  5.     container_name: postiz
  6.     restart: unless-stopped
  7.     environment:
  8.       MAIN_URL: https://postiz.mydomain.com
  9.       FRONTEND_URL: https://postiz.mydomain.com
  10.       NEXT_PUBLIC_BACKEND_URL: https://postiz.mydomain.com/api
  11.       JWT_SECRET: ${JWT_SECRET}
  12.       DATABASE_URL: ${DATABASE_URL}
  13.       REDIS_URL: redis://postiz-redis:6379
  14.       BACKEND_INTERNAL_URL: http://localhost:3000
  15.       IS_GENERAL: "true"
  16.       STORAGE_PROVIDER: local
  17.       UPLOAD_DIRECTORY: /uploads
  18.       NEXT_PUBLIC_UPLOAD_DIRECTORY: /uploads
  19.       LINKEDIN_CLIENT_ID: ${LINKEDIN_CLIENT_ID}
  20.       LINKEDIN_CLIENT_SECRET: ${LINKEDIN_CLIENT_SECRET}
  21.     volumes:
  22.      - ./data/config:/config/
  23.       - ./data/uploads:/uploads/
  24.     # My ports are reverse proxied directly from container, so not exposed to host
  25.     # ports:
  26.     #   - 5000:5000
  27.     networks:
  28.      - postiz-network
  29.       - nginx
  30.     depends_on:
  31.       postiz-postgres:
  32.         condition: service_healthy
  33.       postiz-redis:
  34.         condition: service_healthy
  35.  
  36. postiz-postgres:
  37.     image: postgres:17-alpine
  38.     container_name: postiz-postgres
  39.     restart: unless-stopped
  40.     environment:
  41.       POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
  42.       POSTGRES_USER: ${POSTGRES_USER}
  43.       POSTGRES_DB: postiz-db-local
  44.     volumes:
  45.      - ./data/db:/var/lib/postgresql/data
  46.     networks:
  47.      - postiz-network
  48.     healthcheck:
  49.       test: pg_isready -U postiz-user -d postiz-db-local
  50.       interval: 10s
  51.       timeout: 3s
  52.       retries: 3
  53.  
  54. postiz-redis:
  55.     image: redis:7.2
  56.     container_name: postiz-redis
  57.     restart: unless-stopped
  58.     healthcheck:
  59.       test: redis-cli ping
  60.       interval: 10s
  61.       timeout: 3s
  62.       retries: 3
  63.     volumes:
  64.      - ./data/redis:/data
  65.     networks:
  66.      - postiz-network
  67.  
  68. networks:
  69.   postiz-network:
  70.     external: false
  71.   nginx:
  72.     external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement