-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 1.24 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
services:
app:
# image: nullata/webui-manager:latest
# pull_policy: always
build: .
restart: unless-stopped
ports:
- "${APP_PORT:-5000}:5000"
environment:
SECRET_KEY: ${SECRET_KEY}
APP_CREDENTIALS_KEY: ${APP_CREDENTIALS_KEY:-}
SESSION_COOKIE_NAME: ${SESSION_COOKIE_NAME:-webui_manager_session}
DB_HOST: ${DB_HOST:-localhost}
DB_PORT: ${DB_PORT:-3306}
DB_USER: ${DB_USER:-webui}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME:-webui_manager}
AUTO_MIGRATE: ${AUTO_MIGRATE:-true}
# SQLite instead of MySQL: uncomment the two lines below (the DB_* vars
# above are then ignored) and the volumes sections to persist the file.
# DB_TYPE: sqlite
# DB_PATH: /data/webui_manager.sqlite
volumes:
# Persist user-uploaded background images across container rebuilds.
# Without this, `docker compose up --build` wipes the uploads dir and
# the image row in the DB then points at a filename that no longer
# exists (or, worse, at a stale file baked into the image itself).
- uploads:/app/app/static/uploads
# SQLite data: uncomment along with the DB_TYPE=sqlite lines above.
# - db_data:/data
volumes:
uploads:
# db_data: