Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769551
D3319.id.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.id.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
Sun, Nov 24, 15:46 (5 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258542
Default Alt Text
D3319.id.diff (1 KB)
Attached To
Mode
D3319: Configure docker container
Attached
Detach File
Event Timeline
Log In to Comment