This repository was archived by the owner on Oct 22, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
90 lines (84 loc) · 2.54 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
90 lines (84 loc) · 2.54 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
leantime_db:
image: mysql:8.0.44
container_name: leantime_db_local
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-rootpassword}
MYSQL_DATABASE: ${MYSQL_DATABASE:-leantime}
MYSQL_USER: ${MYSQL_USER:-leantime}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-leantime}
volumes:
- db_data:/var/lib/mysql
networks:
- leantime-net
command: --character-set-server=UTF8MB4 --collation-server=UTF8MB4_unicode_ci
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-rootpassword}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
ports:
- "3307:3306"
leantime:
build:
context: .
dockerfile: Dockerfile
image: leantime:local
container_name: leantime_app_local
restart: unless-stopped
env_file:
- .env
environment:
LEAN_DB_HOST: leantime_db
LEAN_DB_PORT: 3306
LEAN_DB_DATABASE: ${MYSQL_DATABASE:-leantime}
LEAN_DB_USER: ${MYSQL_USER:-leantime}
LEAN_DB_PASSWORD: ${MYSQL_PASSWORD:-leantime}
LEAN_APP_URL: ${LEAN_APP_URL:-http://localhost:8080}
LEAN_DEBUG: ${LEAN_DEBUG:-1}
LEAN_SESSION_SECURE: "false"
LEAN_SESSION_PASSWORD: ${LEAN_SESSION_PASSWORD:-}
LEAN_SITENAME: ${LEAN_SITENAME:-Leantime-Local}
LEAN_LANGUAGE: ${LEAN_LANGUAGE:-en-US}
LEAN_DEFAULT_TIMEZONE: ${LEAN_DEFAULT_TIMEZONE:-UTC}
ports:
- "${LEAN_PORT:-8080}:8080"
networks:
- leantime-net
volumes:
- userfiles:/var/www/html/userfiles
- public_userfiles:/var/www/html/public/userfiles
- logs:/var/www/html/storage/logs
- sessions:/var/www/html/storage/framework/sessions
- cache:/var/www/html/storage/framework/cache
- views:/var/www/html/storage/framework/views
depends_on:
leantime_db:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/healthCheck.php"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
db_data:
name: leantime_db_data_local
userfiles:
name: leantime_userfiles_local
public_userfiles:
name: leantime_public_userfiles_local
logs:
name: leantime_logs_local
sessions:
name: leantime_sessions_local
cache:
name: leantime_cache_local
views:
name: leantime_views_local
networks:
leantime-net:
name: leantime-network-local
driver: bridge