2023-12-10 07:32:50 -05:00
|
|
|
version: "3.8"
|
2023-11-18 07:42:07 -05:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
2024-12-05 09:19:04 -05:00
|
|
|
context: https://github.com/Luzifer/ots.git#v1.15.0
|
2023-11-18 07:42:07 -05:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
# Optional, see "Customization" in README
|
|
|
|
#CUSTOMIZE: '/etc/ots/customize.yaml'
|
|
|
|
# See README for details
|
2023-12-10 07:32:50 -05:00
|
|
|
REDIS_URL: redis://redis:6379/0
|
2023-11-18 07:42:07 -05:00
|
|
|
# 168h = 1w
|
2023-12-10 07:32:50 -05:00
|
|
|
SECRET_EXPIRY: "604800"
|
2023-11-18 07:42:07 -05:00
|
|
|
# "mem" or "redis" (See README)
|
2023-12-10 07:32:50 -05:00
|
|
|
STORAGE_TYPE: redis
|
2023-11-18 07:42:07 -05:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./data:/data
|