Move all docker files into build/docker

This commit is contained in:
TuxGasy 2017-07-26 11:41:12 +02:00
parent bb6b8015fe
commit d09ca6f3da
6 changed files with 25 additions and 25 deletions

View File

@ -1,16 +0,0 @@
build
build.xml
ChangeLog
composer.json
CONTRIBUTING.md
COPYING
COPYRIGHT
dev
doc
Dockerfile
INSTALL
README-FR.md
README.md
robots.txt
scripts
test

View File

@ -0,0 +1,3 @@
Dockerfile
README.md
docker-compose.yml

21
build/docker/README.md Normal file
View File

@ -0,0 +1,21 @@
# How to use it ?
The docker-compose.yml file is used to build and run Dolibarr in the current workspace.
Before build/run, define the variable HOST_USER_ID as following:
export HOST_USER_ID=$(id -u)
And then, you can run :
docker-compose up
This will run 3 container Docker : Dolibarr, MariaDB and PhpMyAdmin.
The URL to go to the Dolibarr is :
http://0.0.0.0
The URL to go to PhpMyAdmin is (login/password is root/root) :
http://0.0.0.0:8080

View File

@ -1,11 +1,3 @@
# This docker-compose.yml file is used to build and run Dolibarr
# in the current workspace
#
# Before build/run, define the variable HOST_USER_ID as following:
# $ export HOST_USER_ID=$(id -u)
# And then, you can run :
# $ docker-compose up
mariadb:
image: mariadb:latest
environment:
@ -26,7 +18,7 @@ web:
environment:
HOST_USER_ID: $HOST_USER_ID
volumes:
- ./htdocs:/var/www/html
- ../../htdocs:/var/www/html
links:
- mariadb
ports: