-
-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathdocker-compose.nonroot.yml
More file actions
36 lines (31 loc) · 1.3 KB
/
docker-compose.nonroot.yml
File metadata and controls
36 lines (31 loc) · 1.3 KB
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
33
34
35
36
# Example docker-compose file for TimeTagger that uses the published
# Docker image in the nonroot variant.
# Shows all options settable via the environment.
#
# !! Make sure to apply your own credentials !!
# !! You can use e.g. https://timetagger.app/cred to generate them !!
# !! In docker-compose characters '$' should be escaped as '$$' !!
# !! If you use a .env file, use single quotes instead of escaping !!
version: "3"
volumes:
timetagger:
driver: local
services:
timetagger:
image: ghcr.io/almarklein/timetagger:v23.11.4-nonroot
ports:
- "8888:80"
volumes:
- timetagger:/root/_timetagger
environment:
- TIMETAGGER_BIND=0.0.0.0:80
- TIMETAGGER_DATADIR=/root/_timetagger
- TIMETAGGER_LOG_LEVEL=info
# The default local auth test:test, comment this line if not used "i.e in production"
- TIMETAGGER_CREDENTIALS=test:$$2a$$08$$0CD1NFiIbancwWsu3se1v.RNR/b7YeZd71yg3cZ/3whGlyU6Iny5i
# Using the reverse proxy authintication
# I use cosmos-cloud.io, change corrosponding headers and ip for the proxy
# Uncomment the following 3 lines if not using proxy to auth
- TIMETAGGER_PROXY_AUTH_ENABLED=true
- TIMETAGGER_PROXY_AUTH_TRUSTED=100.0.0.0/8
- TIMETAGGER_PROXY_AUTH_HEADER='X-cosmos-user'