Update Random_Containers/chhoto-url/compose.yaml

This commit is contained in:
Gabe committed 2026-06-07 01:19:46 +00:00
1 parent 64118767cb
commit e2de13d82a
1 file changed
+46 -26
+46 -26
View File
@@ -6,81 +6,101 @@ services:
tty: true
# You may enable the next two options if you want. Make sure that you run the container as the proper
# user. In most cases, user: 1000:1000 should work. You might also need to mount a directory with your
# db and not just the file itself. Make sure to adjust db_url accordingly.
# db and not just the file itself. Make sure to adjust CHHOTO_DB_URL accordingly.
# It does add extra security, but I don't know enough about docker to help in case it breaks something.
# read_only: true
# cap_drop:
# - ALL
#ports:
#- 4567:4567
# If you changed the "CHHOTO_LISTEN_PORT" environment variable, adjust accordingly
# The number AFTER the colon should match the "CHHOTO_LISTEN_PORT" variable and the number
# before the colon is the port where you would access the container from outside.
# - 4567:4567
environment:
# Change if you want to mount the database somewhere else.
# In this case, you can get rid of the db volume below
# and instead do a mount manually by specifying the location.
# Make sure that you create an empty file with the correct name
# before starting the container if you do make any changes.
# (In fact, I'd suggest that you do that so that you can keep
# a copy of your database.)
- db_url=/db/urls.sqlite
- CHHOTO_DB_URL=/db/urls.sqlite
# Uncomment the next line to enable WAL mode. It's highly recommended.
# Make sure that you mount a directory instead of a bare file
# since that might have a (low, but non-zero) possibility of
# corrupting your db since we use WAL journaling mode
# (In fact, I'd suggest that you do that so that you can keep a copy of your database.)
- CHHOTO_SQLITE_USE_WAL_MODE = True
# Change this if your server URL is not "http://localhost"
# This is important to ensure Chhoto URL outputs the shortened link with the correct URL.
- site_url=https://${SERVICE_NAME}.${DOMAIN_NAME}
# Change this to your public-facing URL. This is optional, as the link will work at any URL as
# long as Chhoto URL is accessible there. This mostly enhances the frontend experience, as copying to clipboard,
# QR code generation will use it if available.
# Do not surround it using quotes. If you have any unicode characters, please use the punycode. It'll be
# automatically converted to the correct unicode in the frontend.
- CHHOTO_SITE_URL=https://${SERVICE_NAME}.${DOMAIN_NAME}
# If you want to provided hashed password and API Key, uncomment the next line. Read the README
# for instructions for the hashing. Make sure to escape $ by $$.
# - hash_algorithm=Argon2
# - CHHOTO_HASH_ALGORITHM=Argon2
# Change this if you are running Chhoto URL on a port which is not 4567.
# This is important to ensure Chhoto URL outputs the shortened link with the correct port.
# - port=4567
# Change this if you are want to run Chhoto URL on a port which is not 4567, bind to something other
# than 0.0.0.0 for the backend. Do not change this unless you know what you're doing.
# - CHHOTO_LISTEN_PORT=4567
# - CHHOTO_LISTEN_ADDRESS=0.0.0.0
- password=${PASSWORD}
# This needs to be set in order to use programs that use the JSON interface of Chhoto URL.
# You will get a warning if this is insecure, and a generated value will be output
# You may use that value if you can't think of a secure key
# - api_key=SECURE_API_KEY
# - CHHOTO_API_KEY=SECURE_API_KEY
# Pass the redirect method, if needed. TEMPORARY and PERMANENT
# are accepted values, defaults to PERMANENT.
# - redirect_method=TEMPORARY
# - CHHOTO_REDIRECT_METHOD=TEMPORARY
# By default, the auto-generated pairs are adjective-name pairs.
# If you want UIDs, please change slug_style to UID.
# Supported values for slug_style are Pair and UID.
# The length is 8 by default, and a minimum of 4 is allowed.
# - slug_style=Pair
# - slug_length=8
# - CHHOTO_SLUG_STYLE=Pair
# - CHHOTO_SLUG_LENGTH=8
# To retry (once) with a longer UID upon collision, change the following to True.
# - try_longer_slug=False
# - CHHOTO_TRY_LONGER_SLUG=False
# If you want to use capital letters in the shortlink, change the following to
# True. This will also allow capital letters in UID slugs, if it is enabled.
# - allow_capital_letters=False
# - CHHOTO_ALLOW_CAPITAL_LETTERS=False
# In case you want to provide public access to adding links (and not
# delete, or listing), change the following option to Enable.
- public_mode=Disable
- CHHOTO_PUBLIC_MODE=Disable
# Additionally, it's possible to force an expiry delay in public mode.
# The user can still choose a shorter expiry delay. The input must be in seconds.
# It defaults to 0 i.e. no expiry.
# - public_mode_expiry_delay=3600
# - CHHOTO_PUBLIC_MODE_EXPIRY_DELAY=3600
# In case you want to completely disable the frontend, change the following
# to True.
# - disable_frontend=False
# - CHHOTO_DISABLE_FRONTEND=False
# If you want to serve a custom landing page, put all your site related files, along with an
# index.html file in a directory, and set the following to the path of the directory. Remember to first
# mount the directory inside the container. The admin page will then be located at /admin/manage.
# - custom_landing_directory=/custom/dir/location
# - CHHOTO_CUSTOM_LANDING_DIRECTORY=/custom/dir/location
# By default, the server sends no Cache-Control headers. You can supply a
# comma separated list of valid header as per RFC 7234 §5.2 to send those
# headers instead.
# - cache_control_header=no-cache, private
# - CHHOTO_CACHE_CONTROL_HEADER=no-cache, private
# By default, the frontend paginates the shortlinks in pages of size 10. You can use the following to
# customize that.
# CHHOTO_FRONTEND_PAGE_SIZE=10
# You may set the TZ variable for timezone in logging, but it will only work in the alpine builds
volumes:
- /srv/docker/chhoto/db:/db
# Only enable this if using the alpine images.
# healthcheck:
# test: wget --no-verbose --tries=1 --spider http://chhoto-url:4567/api/whoami || exit 1
# interval: 60s
# start_period: 10s
# retries: 3
# timeout: 10s
networks:
- traefik_network
labels:
@@ -106,4 +126,4 @@ services:
networks:
traefik_network:
external: true
external: true