mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
This extracts the mariadb part to be able to compose different docker-compose manifests and use PostgreSQL instead for module development and debugging.
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
---
|
|
networks:
|
|
internal-pod:
|
|
internal: true
|
|
external-pod:
|
|
internal: false
|
|
|
|
services:
|
|
mariadb:
|
|
image: mariadb:latest
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: rootpassfordev
|
|
MYSQL_DATABASE: dolibarr
|
|
ports:
|
|
- "3306:3306"
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|
|
web:
|
|
build: .
|
|
environment:
|
|
HOST_USER_ID: $HOST_USER_ID
|
|
PHP_INI_DATE_TIMEZONE: $PHP_INI_DATE_TIMEZONE
|
|
PHP_INI_MEMORY_LIMIT: $PHP_INI_MEMORY_LIMIT
|
|
volumes:
|
|
- ../../../htdocs:/var/www/html/
|
|
- ../../../documents:/var/www/documents
|
|
ports:
|
|
- "80:80"
|
|
- "9000:9000"
|
|
depends_on:
|
|
- mail
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|
|
extra_hosts:
|
|
- "localhost.localdomain:127.0.0.1"
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
mail:
|
|
image: maildev/maildev
|
|
ports:
|
|
- "8081:1080"
|
|
- "25:1025"
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|