Ajouter dolibarr/docker-compose.yml
This commit is contained in:
parent
b8c7915a62
commit
17c5bd6012
1 changed files with 58 additions and 0 deletions
58
dolibarr/docker-compose.yml
Normal file
58
dolibarr/docker-compose.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
services:
|
||||
mariadb:
|
||||
image: mariadb:latest
|
||||
container_name: dolibarr_mariadb
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: dolidb
|
||||
MYSQL_USER: dolidbuser
|
||||
MYSQL_PASSWORD: <strong password>
|
||||
|
||||
volumes:
|
||||
- /data/dolibarr/mariadb:/var/lib/mysql
|
||||
networks:
|
||||
- dolibarr
|
||||
|
||||
web:
|
||||
image: dolibarr/dolibarr:latest
|
||||
container_name: dolibarr_web
|
||||
environment:
|
||||
DOLI_INIT_DEMO: 0
|
||||
DOLI_DB_HOST: mariadb
|
||||
DOLI_DB_NAME: dolidb
|
||||
DOLI_DB_USER: dolidbuser
|
||||
DOLI_DB_PASSWORD: <strong password>
|
||||
DOLI_URL_ROOT: "https://<your domaine name>"
|
||||
DOLI_ADMIN_LOGIN: "admin"
|
||||
DOLI_ADMIN_PASSWORD: "admin"
|
||||
DOLI_CRON: 0
|
||||
DOLI_CRON_KEY: <other strong password>
|
||||
DOLI_COMPANY_NAME: "You company name"
|
||||
WWW_USER_ID: 1000
|
||||
WWW_GROUP_ID: 1000
|
||||
links:
|
||||
- mariadb
|
||||
volumes:
|
||||
- /data/dolibarr/documents:/var/www/documents
|
||||
- /data/dolibarr/custom:/var/www/html/custom
|
||||
networks:
|
||||
- dolibarr
|
||||
- web
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dolibarr.rule=Host(`<your domaine name>`)"
|
||||
- "traefik.http.routers.dolibarr.entrypoints=websecure"
|
||||
- "traefik.http.routers.dolibarr.tls=true"
|
||||
- "traefik.http.services.dolibarr.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.dolibarr.tls.certResolver=letsencrypt"
|
||||
- "traefik.docker.network=web"
|
||||
- "homepage.group=ADA LED"
|
||||
- "homepage.name=Compta"
|
||||
- "homepage.icon=dolibarr.png"
|
||||
- "homepage.href=https://compta.adaled.fr"
|
||||
- "homepage.description=Dolibarr"
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
dolibarr:
|
||||
external: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue