mirror-chhoto-url/compose.yaml

53 lines
2.1 KiB
YAML
Raw Normal View History

2024-04-04 01:40:26 +00:00
# SPDX-FileCopyrightText: 2023 Sayantan Santra <sayantan.santra689@gmail.com>
# SPDX-License-Identifier: MIT
2020-02-14 19:17:56 +00:00
services:
chhoto-url:
image: sintan1729/chhoto-url:latest
2022-11-04 06:14:47 +00:00
restart: unless-stopped
container_name: chhoto-url
2022-11-04 06:14:47 +00:00
ports:
- 4567:4567
2020-02-16 15:53:18 +00:00
environment:
# Change if you want to mount the database somewhere else.
2024-10-05 05:24:16 +00:00
# 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
2023-04-28 05:22:30 +00:00
2022-11-11 02:17:39 +00:00
# Change it in case you want to set the website name
# displayed in front of the shorturls, defaults to
# the hostname you're accessing it from.
2022-11-11 02:17:39 +00:00
# - site_url=https://www.example.com
2023-04-28 05:22:30 +00:00
- password=TopSecretPass
2023-04-28 05:22:30 +00:00
# Pass the redirect method, if needed. TEMPORARY and PERMANENT
# are accepted values, defaults to PERMANENT.
2023-04-28 05:22:30 +00:00
# - redirect_method=TEMPORARY
2024-03-31 05:51:10 +00:00
# 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
2024-03-31 05:51:10 +00:00
# - slug_length=8
# 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
# 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
2020-02-16 15:53:18 +00:00
volumes:
2024-10-05 05:24:16 +00:00
- db:/db
volumes:
db:
2022-11-04 06:14:47 +00:00