1+ services :
2+ postiz :
3+ build :
4+ context : .
5+ dockerfile : Dockerfile.dev
6+ container_name : postiz
7+ restart : always
8+ environment :
9+ # You must change these. Replace `postiz.your-server.com` with your DNS name - this needs to be exactly the URL you're accessing Postiz on.
10+ MAIN_URL : " http://localhost:5450"
11+ FRONTEND_URL : " http://localhost:5450"
12+ NEXT_PUBLIC_BACKEND_URL : " http://localhost:5450/api"
13+ JWT_SECRET : " random string that is unique to every install - just type random characters here!"
14+
15+ # These defaults are probably fine, but if you change your user/password, update it in the
16+ # postiz-postgres or postiz-redis services below.
17+ DATABASE_URL : " postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
18+ REDIS_URL : " redis://postiz-redis:6379"
19+ BACKEND_INTERNAL_URL : " http://localhost:3000"
20+ IS_GENERAL : " true" # Required for self-hosting.
21+ DISABLE_REGISTRATION : " false" # Only allow single registration, then disable signup
22+ # The container images are pre-configured to use /uploads for file storage.
23+ # You probably should not change this unless you have a really good reason!
24+ STORAGE_PROVIDER : " local"
25+ UPLOAD_DIRECTORY : " /uploads"
26+ NEXT_PUBLIC_UPLOAD_DIRECTORY : " /uploads"
27+ volumes :
28+ - postiz-config:/config/
29+ - postiz-uploads:/uploads/
30+ ports :
31+ - 5000:5000
32+ networks :
33+ - postiz-network
34+ depends_on :
35+ postiz-postgres :
36+ condition : service_healthy
37+ postiz-redis :
38+ condition : service_healthy
39+
40+ postiz-postgres :
41+ image : postgres:17-alpine
42+ container_name : postiz-postgres
43+ restart : always
44+ environment :
45+ POSTGRES_PASSWORD : postiz-password
46+ POSTGRES_USER : postiz-user
47+ POSTGRES_DB : postiz-db-local
48+ volumes :
49+ - postgres-volume:/var/lib/postgresql/data
50+ networks :
51+ - postiz-network
52+ healthcheck :
53+ test : pg_isready -U postiz-user -d postiz-db-local
54+ interval : 10s
55+ timeout : 3s
56+ retries : 3
57+ postiz-redis :
58+ image : redis:7.2
59+ container_name : postiz-redis
60+ restart : always
61+ healthcheck :
62+ test : redis-cli ping
63+ interval : 10s
64+ timeout : 3s
65+ retries : 3
66+ volumes :
67+ - postiz-redis-data:/data
68+ networks :
69+ - postiz-network
70+
71+
72+ volumes :
73+ postgres-volume :
74+ external : false
75+
76+ postiz-redis-data :
77+ external : false
78+
79+ postiz-config :
80+ external : false
81+
82+ postiz-uploads :
83+ external : false
84+
85+ networks :
86+ postiz-network :
87+ external : false
0 commit comments