Browse Source

added synopsx, basex/basexhttp

Bachir Soussi Chiadmi 4 years ago
parent
commit
1a930deafc
11 changed files with 77 additions and 1 deletions
  1. 5 0
      .env
  2. 1 1
      .gitignore
  3. 3 0
      .gitmodules
  4. 1 0
      Docker/basex/Dockerfile
  5. 5 0
      Docker/nginx/Dockerfile
  6. 3 0
      Docker/nginx/bashrc
  7. 25 0
      Docker/nginx/default.conf
  8. 2 0
      Docker/nginx/inputrc
  9. 3 0
      README.md
  10. 28 0
      docker-compose.yml
  11. 1 0
      synopsx

+ 5 - 0
.env

@@ -0,0 +1,5 @@
+COMPOSE_PROJECT_NAME=gdp
+
+CLIENT_ROOT=./client
+SYNOPSX_ROOT=./synopsyx
+LOG_ROOT=./log

+ 1 - 1
.gitignore

@@ -1,3 +1,3 @@
 client/*
-api/*
+synopsx/*
 log/*

+ 3 - 0
.gitmodules

@@ -1,3 +1,6 @@
 [submodule "client"]
 	path = client
 	url = https://figureslibres.io/gogs/bachir/gdp_vuewp.git
+[submodule "synopsx"]
+	path = synopsx
+	url = https://github.com/guidesDeParis/synopsx.git

+ 1 - 0
Docker/basex/Dockerfile

@@ -0,0 +1 @@
+FROM basex/basexhttp:latest

+ 5 - 0
Docker/nginx/Dockerfile

@@ -0,0 +1,5 @@
+FROM nginx:latest
+
+COPY ./default.conf /etc/nginx/conf.d/default.conf
+COPY ./bashrc /root/.bashrc
+COPY ./inputrc /root/.inputrc

+ 3 - 0
Docker/nginx/bashrc

@@ -0,0 +1,3 @@
+PS1='\e[36m\e[1mNGINX\e[0m:\e[90m\w\e[0m\n$ '
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'

+ 25 - 0
Docker/nginx/default.conf

@@ -0,0 +1,25 @@
+server {
+    listen 80 default_server;
+    root /var/www/html/dist;
+    index index.html;
+
+    charset utf-8;
+
+    location / {
+        try_files $uri $uri/ /index.php?$query_string;
+    }
+
+    location = /favicon.ico { access_log off; log_not_found off; }
+    location = /robots.txt  { access_log off; log_not_found off; }
+
+    access_log on;
+    error_log  /var/log/nginx/error.log error;
+
+    sendfile off;
+
+    client_max_body_size 100m;
+
+    location ~ /\.ht {
+        deny all;
+    }
+}

+ 2 - 0
Docker/nginx/inputrc

@@ -0,0 +1,2 @@
+set show-all-if-ambiguous on
+set completion-ignore-case on

+ 3 - 0
README.md

@@ -1,2 +1,5 @@
 # docker-gdp
 
+https://github.com/guidesDeParis/webapp/blob/master/install.md
+
+http://docs.basex.org/wiki/Docker

+ 28 - 0
docker-compose.yml

@@ -0,0 +1,28 @@
+version: "3.5"
+
+services:
+  basex:
+    build: ./Docker/basex
+    ports:
+      - 1984:1984
+      - 8984:8984
+    # volumes:
+    - "${SYNOPSX_ROOT}:/srv/basex/webapp/synopsx"
+      # - "${API_ROOT}:/srv/basex/data"
+      # - "${}:/srv/basex/repo"
+      # - "${LOG_ROOT}:/var/log:rw"
+
+  nginx:
+    build: ./Docker/nginx/
+    ports:
+      - 8990:80
+    volumes:
+      - "${CLIENT_ROOT}:/var/www/html"
+      - "${LOG_ROOT}:/var/log:rw"
+    working_dir: "/var/www/html/"
+    networks:
+    depends_on:
+
+  volumes:
+
+  networks:

+ 1 - 0
synopsx

@@ -0,0 +1 @@
+Subproject commit 4f4c2d89cda9730e1f851ad88d23e61e17c590c7