-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
32 lines (26 loc) · 1.19 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3"
services:
dailytxt:
image: phitux/dailytxt:latest
container_name: dailytxt
restart: always
environment:
# That's the internal container-port. You can actually use any portnumber (must match with the one at 'ports')
- PORT=8765
- SECRET_KEY=<openssl rand -base64 32>
# Set it to False or remove the line completely to disallow registration of new users.
- ALLOW_REGISTRATION=True
# Use this if you want the json log file to be indented. Makes it easier to compare the files. Otherwise just remove this line!
- DATA_INDENT=2
# Set after how many days the JWT token will expire and you have to re-login. Defaults to 30 days if line is ommited.
- JWT_EXP_DAYS=60
# Enable/disable a feature of DailyTxT to auto-check maximal once per hour if there's a newer version of DailyTxT available. Defaults to True if line is ommited.
- ENABLE_UPDATE_CHECK=True
ports:
- "127.0.0.1:<host_port>:8765"
# perhaps you only want:
# "<host_port>:8765"
volumes:
- "</save/my/dailytxt-files/here/>:/app/data/"
# Or perhaps if using on a windows enviroment:
# "C:/Users/example/dailytxt/:/app/data"