forked from Wavyzz/dolibarr-docker
Add some example of integrations (#44)
* Add some example of integrations Update docker-run.sh to deal with docker secret for some vars. * Update update.sh Fix review * Update .gitignore
This commit is contained in:
41
examples/with-mysql/docker-compose.yml
Normal file
41
examples/with-mysql/docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
version: "3.8"
|
||||
|
||||
networks:
|
||||
internal-pod:
|
||||
internal: true
|
||||
external-pod:
|
||||
internal: false
|
||||
|
||||
volumes:
|
||||
dolibarr-docs:
|
||||
mysql-data:
|
||||
|
||||
services:
|
||||
dolibarr:
|
||||
image: tuxgasy/dolibarr:latest
|
||||
environment:
|
||||
DOLI_DB_HOST: "mysql"
|
||||
DOLI_DB_HOST_PORT: "3306"
|
||||
DOLI_DB_USER: "dolibarr"
|
||||
DOLI_DB_PASSWORD: "mysupersecretpasswordfordatabase"
|
||||
DOLI_DB_NAME: "dolibarr"
|
||||
DOLI_ADMIN_LOGIN: "admin"
|
||||
DOLI_ADMIN_PASSWORD: "mysuperhypersecretpasswordforadminacount"
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- dolibarr-docs:/var/www/documents
|
||||
networks:
|
||||
- internal-pod
|
||||
- external-pod
|
||||
|
||||
mysql:
|
||||
image: library/mariadb:latest
|
||||
environment:
|
||||
MYSQL_DATABASE: "dolibarr"
|
||||
MYSQL_USER: "dolibarr"
|
||||
MYSQL_PASSWORD: "mysupersecretpasswordfordatabase"
|
||||
volumes:
|
||||
- mysql-data:/var/lib/mysql
|
||||
networks:
|
||||
- internal-pod
|
||||
3
examples/with-mysql/dolibarr-with-mysql.md
Normal file
3
examples/with-mysql/dolibarr-with-mysql.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Dolibarr with mysql
|
||||
|
||||
Running a Dolibarr instance with a mysql server is a standard behaviour, this examples show you how to describe this architecture in a docker-compose way.
|
||||
Reference in New Issue
Block a user