feat: added .env file support
This commit is contained in:
9
.env.example
Normal file
9
.env.example
Normal file
@@ -0,0 +1,9 @@
|
||||
# Set a password to protect the app. Leave empty to disable auth.
|
||||
PASSWORD=
|
||||
|
||||
# Host port to expose the app on.
|
||||
PORT=5000
|
||||
|
||||
# Host paths for persistent data.
|
||||
DOWNLOADS_DIR=./downloads
|
||||
CONFIG_DIR=./config
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/downloads/
|
||||
/downloads/
|
||||
.env
|
||||
@@ -3,10 +3,10 @@ services:
|
||||
build: .
|
||||
container_name: votify-web
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- PASSWORD=test # Remove or leave empty to disable auth
|
||||
- "${PORT:-5000}:5000"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./downloads:/downloads
|
||||
- ./config:/config
|
||||
- ${DOWNLOADS_DIR:-./downloads}:/downloads
|
||||
- ${CONFIG_DIR:-./config}:/config
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user