1
0
mirror of https://github.com/Haxxnet/Compose-Examples synced 2024-12-29 05:30:19 +00:00
Compose-Examples/examples/leantime/docker-compose.yml

52 lines
2.0 KiB
YAML
Raw Normal View History

2023-03-16 00:56:40 +00:00
services:
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
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
env_file: ./.env
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
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:
- "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