This repository was archived by the owner on Oct 22, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
83 lines (80 loc) · 2.2 KB
/
Copy pathdocker-compose.staging.yml
File metadata and controls
83 lines (80 loc) · 2.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
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
services:
leantime_db:
image: mysql:8.0.44
container_name: leantime_staging_db
env_file:
- .env
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
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}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
ports:
- "3307:3306"
leantime:
image: leantime-staging:staging
container_name: leantime_app_local
restart: unless-stopped
env_file:
- .env
environment:
LEAN_DB_HOST: leantime_db
LEAN_DB_PORT: 3306
LEAN_APP_URL: ${LEAN_APP_URL}
LEAN_DEBUG: ${LEAN_DEBUG}
LEAN_SESSION_SECURE: "false"
LEAN_SESSION_PASSWORD: ${LEAN_SESSION_PASSWORD}
LEAN_SITENAME: ${LEAN_SITENAME}
LEAN_LANGUAGE: ${LEAN_LANGUAGE}
LEAN_DEFAULT_TIMEZONE: ${LEAN_DEFAULT_TIMEZONE}
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-SHELL", "curl -f http://localhost:8080 || exit 1"]
interval: 30s
timeout: 5s
retries: 5
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