-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose-auth.yml
31 lines (30 loc) · 1.38 KB
/
docker-compose-auth.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
version: "3"
services:
wyp:
image: aceberg/watchyourports
restart: unless-stopped
volumes:
- ~/.dockerdata/WatchYourPorts:/data/WatchYourPorts
environment:
TZ: Asia/Novosibirsk # required, default: ""
HOST: "0.0.0.0" # optional, default: 0.0.0.0
PORT: "8853" # optional, default: 8853
THEME: "grass" # optional, default: grass
COLOR: "dark" # optional, default: dark
forauth:
image: aceberg/forauth
restart: unless-stopped
ports:
- 8800:8800 # Proxy port
- 8801:8801 # Config port
volumes:
- ~/.dockerdata/forauth:/data/ForAuth
environment:
TZ: Asia/Novosibirsk # required: needs your TZ for correct time
FA_TARGET: "wyp:8853" # optional: path to wyp host:port
FA_AUTH: "true" # optional: true - enabled, default: false
FA_AUTH_EXPIRE: 7d # optional: expiration time, default: 7d
FA_AUTH_PASSWORD: "$$2a$$10$$wGLUHXh2cRN1257uGg1s5eZvYgnjw8wB9vAcfcHqqqrxm5hvBqAzK"
# WARNING! If password is set as environment variable, every '$' character must be escaped with another '$', like this '$$'
# optional: password encrypted with bcrypt, how-to: https://github.com/aceberg/ForAuth/blob/main/docs/BCRYPT.md (In this example FA_AUTH_PASSWORD=pw)
FA_AUTH_USER: user # optional: username