Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.8"
- services:
- postiz:
- image: ghcr.io/gitroomhq/postiz-app:latest
- container_name: postiz
- restart: unless-stopped
- environment:
- MAIN_URL: https://postiz.mydomain.com
- FRONTEND_URL: https://postiz.mydomain.com
- NEXT_PUBLIC_BACKEND_URL: https://postiz.mydomain.com/api
- JWT_SECRET: ${JWT_SECRET}
- DATABASE_URL: ${DATABASE_URL}
- REDIS_URL: redis://postiz-redis:6379
- BACKEND_INTERNAL_URL: http://localhost:3000
- IS_GENERAL: "true"
- STORAGE_PROVIDER: local
- UPLOAD_DIRECTORY: /uploads
- NEXT_PUBLIC_UPLOAD_DIRECTORY: /uploads
- LINKEDIN_CLIENT_ID: ${LINKEDIN_CLIENT_ID}
- LINKEDIN_CLIENT_SECRET: ${LINKEDIN_CLIENT_SECRET}
- volumes:
- - ./data/config:/config/
- - ./data/uploads:/uploads/
- # My ports are reverse proxied directly from container, so not exposed to host
- # ports:
- # - 5000:5000
- networks:
- - postiz-network
- - nginx
- depends_on:
- postiz-postgres:
- condition: service_healthy
- postiz-redis:
- condition: service_healthy
- postiz-postgres:
- image: postgres:17-alpine
- container_name: postiz-postgres
- restart: unless-stopped
- environment:
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
- POSTGRES_USER: ${POSTGRES_USER}
- POSTGRES_DB: postiz-db-local
- volumes:
- - ./data/db:/var/lib/postgresql/data
- networks:
- - postiz-network
- healthcheck:
- test: pg_isready -U postiz-user -d postiz-db-local
- interval: 10s
- timeout: 3s
- retries: 3
- postiz-redis:
- image: redis:7.2
- container_name: postiz-redis
- restart: unless-stopped
- healthcheck:
- test: redis-cli ping
- interval: 10s
- timeout: 3s
- retries: 3
- volumes:
- - ./data/redis:/data
- networks:
- - postiz-network
- networks:
- postiz-network:
- external: false
- nginx:
- external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement