1
0
Fork 0
myserver-configuration/roles/dolibarr/templates/docker-compose.yml

56 lines
1.7 KiB
YAML
Raw Normal View History

2023-06-11 00:44:23 +02:00
services:
mariadb:
image: mariadb:latest
restart: unless-stopped
2023-06-11 00:44:23 +02:00
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dolibarr
volumes:
- {{ server.work_dir }}/dolibarr/db:/var/lib/mysql
networks:
- internal
2023-09-25 13:59:43 +02:00
logging:
driver: loki
options:
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
mode: non-blocking
2023-06-11 00:44:23 +02:00
dolibarr:
2023-06-11 01:11:57 +02:00
image: tuxgasy/dolibarr:latest
restart: unless-stopped
2023-06-11 00:44:23 +02:00
container_name: dolibarr
environment:
DOLI_DB_HOST: mariadb
DOLI_DB_USER: root
DOLI_DB_PASSWORD: root
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: 'http://0.0.0.0'
DOLI_ADMIN_LOGIN: admin
DOLI_ADMIN_PASSWORD: admin
2023-06-11 01:11:57 +02:00
PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
2023-06-11 00:44:23 +02:00
DOLI_INSTALL_AUTO: 1
volumes:
- {{ server.work_dir }}/dolibarr/base/documents:/var/www/documents
2023-06-11 01:11:57 +02:00
- {{ server.work_dir }}/dolibarr/base/html:/var/www/html/custom
2023-06-11 00:44:23 +02:00
networks:
- proxy
- internal
labels:
- "traefik.enable=true"
- "traefik.http.routers.dolibarr-secure.entrypoints=https"
- "traefik.http.routers.dolibarr-secure.rule=Host(`dolibarr.{{ server.domain }}`)"
- "traefik.http.routers.dolibarr-secure.tls=true"
- "traefik.http.routers.dolibarr-secure.tls.certresolver=sslResolver"
2023-09-24 19:48:42 +02:00
- "traefik.http.routers.dolibarr-secure.middlewares=private-network@file"
2023-06-11 00:44:23 +02:00
- "traefik.docker.network=proxy"
2023-09-25 13:59:43 +02:00
logging:
driver: loki
options:
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
mode: non-blocking
2023-06-11 00:44:23 +02:00
networks:
internal:
proxy:
external: true