-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 822 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 822 Bytes
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
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}
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