forked from Leantime/docker-leantime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.81 KB
/
docker-compose.yml
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
version: '3.3'
services:
leantime_db:
image: mysql:8.0
container_name: mysql_leantime
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: '321.qwerty'
MYSQL_DATABASE: 'leantime'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: '321.qwerty'
command: --character-set-server=utf8 --collation-server=utf8_unicode_ci
leantime:
image: leantime/leantime:latest
container_name: leantime
restart: unless-stopped
environment:
# LEAN_APP_URL: 'https://domain.com/leantime' # Only needed for subdirectory setup; protocol (http or https) and base URL , trailing slash not needed
LEAN_SITENAME: 'Leantime' # Name of your site, can be changed later
LEAN_DB_HOST: 'mysql_leantime' # Database host, derived from container_name in leantime_db container
LEAN_DB_USER: 'admin'
LEAN_DB_PASSWORD: '321.qwerty'
LEAN_DB_DATABASE: 'leantime'
LEAN_DEFAULT_TIMEZONE: 'Europe/Stockholm' # Set default server timezone
LEAN_SESSION_PASSWORD: 'GD8Fozemg3AqM9my86TTfgTeGPXXkPF7' # Salting sessions. Replace with a strong password
LEAN_SESSION_EXPIRATION: 28800 # How many seconds after inactivity should we logout? 28800seconds = 8hours
volumes:
- public_userfiles:/var/www/html/public/userfiles
- userfiles:/var/www/html/userfiles
ports:
- "8080:80" # The port to expose and access Leantime
depends_on:
- leantime_db # Don't start Leantime unless leantime_db is running
volumes:
db_data:
userfiles:
public_userfiles: