Browse Source

Move all docker files into build/docker

TuxGasy 7 years ago
parent
commit
d09ca6f3da

+ 0 - 16
.dockerignore

@@ -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

+ 3 - 0
build/docker/.dockerignore

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

+ 0 - 0
Dockerfile → build/docker/Dockerfile


+ 21 - 0
build/docker/README.md

@@ -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

+ 1 - 9
docker-compose.yml → build/docker/docker-compose.yml

@@ -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:

+ 0 - 0
docker-run.sh → build/docker/docker-run.sh