50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
|
# {{ ansible_managed }}
|
||
|
|
||
|
services:
|
||
|
wekan:
|
||
|
image: {{ docker_wekan_image_version }}
|
||
|
restart: always
|
||
|
environment:
|
||
|
- WRITABLE_PATH=/data
|
||
|
- MONGO_URL=mongodb://db:27017/wekan
|
||
|
- ROOT_URL=https://{{ docker_wekan_fqdn }}
|
||
|
- BROWSER_POLICY_ENABLED=true
|
||
|
{{ docker_wekan_custom_env | indent(6, False) }}
|
||
|
volumes:
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
- {{ docker_wekan_data_dir }}/{{ docker_wekan_service_id }}/wekan-files:/data
|
||
|
labels:
|
||
|
traefik.enable: "true"
|
||
|
traefik.docker.network: "traefik"
|
||
|
traefik.http.routers.{{ docker_wekan_service_id }}.entrypoints: "web"
|
||
|
traefik.http.routers.{{ docker_wekan_service_id }}.rule: "Host(`{{ docker_wekan_fqdn }}`)"
|
||
|
traefik.http.services.{{ docker_wekan_service_id }}.loadbalancer.server.port: "8080"
|
||
|
networks:
|
||
|
- traefik
|
||
|
- wekan
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
db:
|
||
|
image: mongo:6
|
||
|
restart: always
|
||
|
# command: mongod --oplogSize 128
|
||
|
# Syslog: mongod --syslog --oplogSize 128 --quiet
|
||
|
# Disable MongoDB logs:
|
||
|
command: mongod --logpath /dev/null --oplogSize 128 --quiet
|
||
|
networks:
|
||
|
- wekan
|
||
|
expose:
|
||
|
- 27017
|
||
|
volumes:
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
- {{ docker_wekan_data_dir }}/{{ docker_wekan_service_id }}/wekan-db:/data/db
|
||
|
- {{ docker_wekan_data_dir }}/{{ docker_wekan_service_id }}/wekan-db-dump:/dump
|
||
|
|
||
|
|
||
|
networks:
|
||
|
traefik:
|
||
|
external: true
|
||
|
wekan:
|
||
|
internal: true
|