2024-04-03 20:40:26 -05:00
|
|
|
# SPDX-FileCopyrightText: 2023 Sayantan Santra <sayantan.santra689@gmail.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2020-02-14 13:17:56 -06:00
|
|
|
services:
|
2024-02-10 18:29:50 -06:00
|
|
|
chhoto-url:
|
|
|
|
image: sintan1729/chhoto-url:latest
|
2022-11-04 01:14:47 -05:00
|
|
|
restart: unless-stopped
|
2024-02-10 18:29:50 -06:00
|
|
|
container_name: chhoto-url
|
2022-11-04 01:14:47 -05:00
|
|
|
ports:
|
|
|
|
- 4567:4567
|
2020-02-16 09:53:18 -06:00
|
|
|
environment:
|
2024-05-31 01:42:51 -05:00
|
|
|
# Change if you want to mount the database somewhere else.
|
2022-11-05 14:44:15 -05:00
|
|
|
# In this case, you can get rid of the db volume below
|
2024-05-31 01:42:51 -05:00
|
|
|
# and instead do a mount manually by specifying the location.
|
2023-04-08 15:56:29 -05:00
|
|
|
# - db_url=/urls.sqlite
|
2023-04-28 00:22:30 -05:00
|
|
|
|
2022-11-10 20:17:39 -06:00
|
|
|
# Change it in case you want to set the website name
|
|
|
|
# displayed in front of the shorturls, defaults to
|
2024-05-31 01:42:51 -05:00
|
|
|
# the hostname you're accessing it from.
|
2022-11-10 20:17:39 -06:00
|
|
|
# - site_url=https://www.example.com
|
2023-04-28 00:22:30 -05:00
|
|
|
|
2020-05-23 12:54:27 -05:00
|
|
|
- password=$3CuReP4S$W0rD
|
2023-04-28 00:22:30 -05:00
|
|
|
|
2024-05-31 01:42:51 -05:00
|
|
|
# Pass the redirect method, if needed. TEMPORARY and PERMANENT
|
|
|
|
# are accepted values, defaults to PERMANENT.
|
2023-04-28 00:22:30 -05:00
|
|
|
# - redirect_method=TEMPORARY
|
2024-03-31 00:51:10 -05:00
|
|
|
|
2024-05-31 01:42:51 -05: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.
|
2024-03-31 00:59:05 -05:00
|
|
|
# - slug_style=Pair
|
2024-03-31 00:51:10 -05:00
|
|
|
# - slug_length=8
|
2024-05-28 18:20:09 -05:00
|
|
|
|
|
|
|
# In case you want to provide public access to adding links (and not
|
2024-05-31 01:42:51 -05:00
|
|
|
# delete, or listing), change the following option to Enable.
|
2024-05-28 18:20:09 -05:00
|
|
|
# - public_mode=Disable
|
2024-05-31 01:42:51 -05:00
|
|
|
|
|
|
|
# By default, the server sends `no-cache` and `private` Cache-Control
|
|
|
|
# headers. To disable those, change the following option to Disable.
|
|
|
|
# - cache_control_header=Enable
|
2020-02-16 09:53:18 -06:00
|
|
|
volumes:
|
2023-04-08 15:56:29 -05:00
|
|
|
- db:/urls.sqlite
|
2022-11-04 01:14:47 -05:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
|
2020-05-23 12:54:27 -05:00
|
|
|
volumes:
|
|
|
|
db:
|
2020-02-16 09:53:18 -06:00
|
|
|
|
2022-11-04 01:39:53 -05:00
|
|
|
|
2020-02-16 09:53:18 -06:00
|
|
|
networks:
|
|
|
|
proxy:
|
2022-11-04 01:14:47 -05:00
|
|
|
external: true
|