Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11691270
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b131a4c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,24 @@
+#
+# Nasqueron - ViMbAdmin
+#
+
+FROM nasqueron/nginx-php-fpm:novolume
+MAINTAINER Nasqueron Organisation <docker@nasqueron.org>
+
+#
+# Prepare the container
+#
+
+COPY files /
+
+WORKDIR /var/wwwroot/default
+
+RUN apt update && \
+ apt install -y libpq-dev && \
+ docker-php-ext-install pgsql && \
+ printf "\n" | pecl install memcache && \
+ git clone https://github.com/opensolutions/ViMbAdmin.git . && \
+ composer install --prefer-dist --no-dev -o && \
+ chown -R app:app /var/wwwroot/default && \
+ rm -r /var/lib/apt/lists/*
+
diff --git a/files/etc/nginx/sites-available/default b/files/etc/nginx/sites-available/default
new file mode 100644
index 0000000..fd771a5
--- /dev/null
+++ b/files/etc/nginx/sites-available/default
@@ -0,0 +1,23 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name _;
+
+ root /var/wwwroot/default/public;
+
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri $uri/ /index.php?$args;
+ }
+
+ location ~ \.php$ {
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ include snippets/fastcgi-php.conf;
+ fastcgi_pass 127.0.0.1:9000;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+}
diff --git a/files/usr/local/etc/php/conf.d/memcache.ini b/files/usr/local/etc/php/conf.d/memcache.ini
new file mode 100644
index 0000000..587455f
--- /dev/null
+++ b/files/usr/local/etc/php/conf.d/memcache.ini
@@ -0,0 +1 @@
+extension=memcache.so
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Sep 12, 20:54 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2978331
Default Alt Text
(1 KB)
Attached To
Mode
rDVMA ViMbAdmin Docker image
Attached
Detach File
Event Timeline
Log In to Comment