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: .
|
build: .
|
||||||
container_name: votify-web
|
container_name: votify-web
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "${PORT:-5000}:5000"
|
||||||
environment:
|
env_file:
|
||||||
- PASSWORD=test # Remove or leave empty to disable auth
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./downloads:/downloads
|
- ${DOWNLOADS_DIR:-./downloads}:/downloads
|
||||||
- ./config:/config
|
- ${CONFIG_DIR:-./config}:/config
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user