forked from chaosarium/lwt
-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.74 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# LWT Docker Compose Configuration
#
# Usage:
# 1. Copy .env.example to .env and configure your settings
# 2. Run: docker compose up
# 3. Access at http://localhost:8010/
#
# The .env file is automatically read by docker compose.
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
- APP_BASE_PATH=${APP_BASE_PATH:-}
- APACHE_PORT=${APACHE_PORT:-80}
container_name: lwt
depends_on:
- db
- nlp
environment:
# Database configuration for Docker
# DB_HOST and DB_USER are hardcoded for the Docker setup
# DB_PASSWORD and DB_NAME can be customized via .env file
- DB_HOST=db
- DB_USER=root
- DB_PASSWORD=${DB_PASSWORD:-root}
- DB_NAME=${DB_NAME:-learning-with-texts}
- APP_BASE_PATH=${APP_BASE_PATH:-}
- NLP_SERVICE_URL=http://nlp:8000
- MULTI_USER_ENABLED=${MULTI_USER_ENABLED:-false}
- APP_URL=${APP_URL:-}
volumes:
- ./media:/var/www/html${APP_BASE_PATH:-}/media
ports:
- "${WEB_PORT:-8010}:${APACHE_PORT:-80}"
restart: unless-stopped
db:
container_name: lwt_db
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-root}
MYSQL_DATABASE: ${DB_NAME:-learning-with-texts}
hostname: db
image: mariadb:12.1
restart: unless-stopped
volumes:
- ./lwt_db_data:/var/lib/mysql
nlp:
build:
context: ./services/nlp
container_name: lwt_nlp
volumes:
- nlp_voices:/app/voices
environment:
PIPER_VOICES_DIR: /app/voices
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
nlp_voices: