# This shows up on the homescreen, indicating build information BUILD_INFO=latest
# Port to expose HTTP service # Set to 127.0.0.1:8080 if you wish to reverse-proxy the docker's port, # otherwise the port specified here will be publicly accessible PORT=7420
# How many waitress threads to start # 4 is the default amount of threads. If you experience performance # degradation with a large number of posts, increasing this may # improve performance, since waitress is most likely clogging up with Tasks. THREADS=4
# URL base to run szurubooru under # See "Additional Features" section in INSTALL.md BASE_URL=/
# Directory to store image data MOUNT_DATA=./data
# Directory to store database files MOUNT_SQL=./sql
# rather than editing this file, it is strongly suggested to create config.yaml # and override only what you need.
# shown in the website title and on the front page name:szurubooru # full url to the homepage of this szurubooru site, with no trailing slash domain:# example: http://example.com # used to salt the users' password hashes and generate filenames for static content secret:change
# Delete thumbnails and source files on post delete # Original functionality is no, to mitigate the impacts of admins going # on unchecked post purges. delete_source_files:no
# settings used to download files from the web on behalf of the api users user_agent: max_dl_filesize:25.0E+6# maximum filesize limit in bytes
# automatically convert animated GIF uploads to video formats convert: gif: to_webm:false to_mp4:false
# allow posts to be uploaded even if some image processing errors occur allow_broken_uploads:false
# used to send password reset e-mails smtp: host:# example: localhost port:# example: 25 user:# example: bot pass:# example: groovy123 from:# example: noreply@example.com # if host is left empty the password reset feature will be disabled, # in which case it is recommended to fill contactEmail so that users # know who to contact when they want to reset their password
contact_email:# example: bob@example.com. Meant for manual password reset procedures
# don't make these more restrictive unless you want to annoy people; if you do # customize them, make sure to update the instructions in the registration form # template as well. password_regex:'^.{5,}$' user_name_regex:'^[a-zA-Z0-9_-]{1,32}$'
# webhooks to call when events occur (such as post/tag/user/etc. changes) # the listed urls will be called with a HTTP POST request with a payload # containing a snapshot resource as JSON. See doc/API.md for details webhooks: # - https://api.example.com/webhooks/
default_rank:regular
privileges: 'users:create:self':anonymous# Registration permission 'users:create:any':administrator 'users:list':regular 'users:view':regular 'users:edit:any:name':moderator 'users:edit:any:pass':moderator 'users:edit:any:email':moderator 'users:edit:any:avatar':moderator 'users:edit:any:rank':moderator 'users:edit:self:name':regular 'users:edit:self:pass':regular 'users:edit:self:email':regular 'users:edit:self:avatar':regular 'users:edit:self:rank':moderator# one can't promote themselves or anyone to upper rank than their own. 'users:delete:any':administrator 'users:delete:self':regular
## ONLY SET THESE IF DEPLOYING OUTSIDE OF DOCKER #debug: 0 # generate server logs? #show_sql: 0 # show sql in server logs? #data_url: /data/ #data_dir: /var/www/data ## usage: schema://user:password@host:port/database_name ## example: postgres://szuru:dog@localhost:5432/szuru_test #database:
services: server: image:szurubooru/server:latest container_name:szuru-server depends_on: -sql environment: ## These should be the names of the dependent containers listed below, ## or FQDNs/IP addresses if these services are running outside of Docker POSTGRES_HOST:sql ## Credentials for database: POSTGRES_USER:${POSTGRES_USER} POSTGRES_PASSWORD:${POSTGRES_PASSWORD} ## Commented Values are Default: #POSTGRES_DB: defaults to same as POSTGRES_USER #POSTGRES_PORT: 5432 #LOG_SQL: 0 (1 for verbose SQL logs) THREADS:${THREADS} volumes: -"${MOUNT_DATA}:/data" -"./config.yaml:/opt/app/config.yaml"