2023-03-16 00:56:40 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-03-16 00:56:40 +00:00
|
|
|
leantime_db:
|
2024-11-22 15:32:21 +00:00
|
|
|
image: mysql:8.4
|
2023-03-16 00:56:40 +00:00
|
|
|
container_name: leantime-mysql
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 3306
|
2023-03-16 00:56:40 +00:00
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/leantime/mysql:/var/lib/mysql
|
|
|
|
restart: unless-stopped
|
2024-01-18 00:14:42 +00:00
|
|
|
env_file: ./.env
|
2023-10-09 16:17:15 +00:00
|
|
|
command: --character-set-server=UTF8MB4 --collation-server=UTF8MB4_unicode_ci
|
2023-03-16 00:56:40 +00:00
|
|
|
#networks:
|
2024-11-22 15:32:21 +00:00
|
|
|
# - internal
|
2023-03-16 00:56:40 +00:00
|
|
|
|
|
|
|
leantime:
|
|
|
|
image: leantime/leantime:latest
|
|
|
|
container_name: leantime
|
|
|
|
restart: unless-stopped
|
2024-01-18 00:14:42 +00:00
|
|
|
env_file: ./.env
|
2023-03-16 00:56:40 +00:00
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/leantime/public_data:/var/www/html/public/userfiles
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/leantime/data:/var/www/html/userfiles
|
2024-11-22 15:32:21 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/leantime/plugins:/var/www/html/app/Plugins
|
2023-03-16 00:56:40 +00:00
|
|
|
ports:
|
2024-11-04 12:08:51 +00:00
|
|
|
- "8080:80" # The port to expose and access Leantime
|
|
|
|
expose:
|
|
|
|
- 80
|
2023-03-16 00:56:40 +00:00
|
|
|
depends_on:
|
2024-11-22 15:32:21 +00:00
|
|
|
- leantime_db
|
2023-03-16 00:56:40 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2024-11-22 15:32:21 +00:00
|
|
|
# - internal
|
2023-03-16 00:56:40 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
2024-11-22 15:33:09 +00:00
|
|
|
# - traefik.docker.network=proxy
|
2023-03-16 00:56:40 +00:00
|
|
|
# - traefik.http.routers.leantime.rule=Host(`leantime.example.com`)
|
|
|
|
# - traefik.http.services.leantime.loadbalancer.server.port=80
|
2024-11-22 15:33:09 +00:00
|
|
|
# # Optional part for file upload max sizes
|
2023-03-16 00:56:40 +00:00
|
|
|
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 # optional, only necessary for enabled file uploads
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 # optional, only necessary for enabled file uploads
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 # optional, only necessary for enabled file uploads
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 # optional, only necessary for enabled file uploads
|
|
|
|
# # Part for optional traefik middlewares
|
|
|
|
# - traefik.http.routers.leantime.middlewares=local-ipwhitelist@file,authelia@file,basic-auth@file
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|
2024-11-22 15:32:21 +00:00
|
|
|
# internal:
|
|
|
|
# internal: true
|