Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3781169
D3319.diff
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
D3319.diff
View Options
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
--- /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
--- /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
--- /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/plain
Expires
Tue, Nov 26, 18:58 (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264989
Default Alt Text
D3319.diff (1 KB)
Attached To
Mode
D3319: Configure docker container
Attached
Detach File
Event Timeline
Log In to Comment