2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/build/docker/docker-compose.yml
FVolral c6e7881763 FIX: Docker-compose file and Dockerfile
Fix #18816 : During the build of the docker-compose `web` service, in
the `Dockerfile` There is a command which attemps to modify
`/etc/hosts`. On my system This file is Read-only. Using the
`extra_hosts` parameter in `docker-compose.yml` instead fix the
problem.
2021-09-24 19:49:30 +02:00

60 lines
1.2 KiB
YAML

version: '3'
networks:
internal-pod:
internal: true
external-pod:
internal: false
services:
mariadb:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dolibarr
ports:
- "3306:3306"
networks:
- internal-pod
- external-pod
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mariadb
depends_on:
- mariadb
ports:
- "8080:80"
networks:
- internal-pod
- external-pod
web:
build: .
environment:
HOST_USER_ID: $HOST_USER_ID
volumes:
- ../../htdocs:/var/www/html/
- ../../documents:/var/documents
ports:
- "80:80"
- "9000:9000"
depends_on:
- mariadb
- mail
networks:
- internal-pod
- external-pod
extra_hosts:
- "localhost.localdomain:127.0.0.1"
mail:
image: maildev/maildev
ports:
- "8081:80"
- "25:25"
networks:
- internal-pod
- external-pod