-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 1.2 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
services:
web:
image: ghcr.io/hugofara/lwt:latest
container_name: lwt
depends_on:
- db
volumes:
- ${WEB_MEDIA_PATH:-./media}:/var/www/html/media
ports:
- "${WEB_PORT:-8010}:80"
environment:
DB_HOST: ${DB_HOSTNAME:-db}
DB_USER: ${DB_USER:-root}
DB_PASSWORD: ${DB_PASSWORD:-root}
DB_NAME: ${DB_DATABASE:-learning-with-texts}
MULTI_USER_ENABLED: ${MULTI_USER_ENABLED:-false}
# Reverse-proxy / TLS offloading.
# APP_URL: explicit public origin (https://your-domain.example).
# TRUST_PROXY: honour X-Forwarded-Proto / X-Forwarded-Host from
# the front-end proxy (Traefik, Caddy, nginx, ...). Default true.
# See https://hugofara.github.io/lwt/guide/post-installation#reverse-proxy
APP_URL: ${APP_URL:-}
TRUST_PROXY: ${TRUST_PROXY:-true}
restart: unless-stopped
db:
container_name: lwt_db
image: mariadb:12.1
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-root}
MYSQL_DATABASE: ${DB_DATABASE:-learning-with-texts}
hostname: ${DB_HOSTNAME:-db}
restart: unless-stopped
volumes:
- ${DB_DATA_PATH:-./lwt_db_data}:/var/lib/mysql