[GH-ISSUE #7] docker #4

Closed
opened 2026-02-25 23:40:22 +03:00 by kerem · 1 comment
Owner

Originally created by @aVolpe on GitHub (Mar 4, 2016).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/7

Hello, I create a docker file to host pictshare:

FROM ishakuta/docker-nginx-php5
MAINTAINER Arturo Volpe <arturovolpe@gmail.com>

RUN apt-get update && apt-get install -y php5-gd

WORKDIR /opt
RUN curl -O https://codeload.github.com/chrisiaut/pictshare/zip/master

RUN apt-get install -y unzip

RUN unzip master
RUN mv pictshare-master pictshare && rm master

RUN apt-get install -y php5-fpm

WORKDIR /opt/pictshare
RUN cp inc/example.config.inc.php inc/config.inc.php
RUN chmod +x bin/ffmpeg

ADD pictshare.conf /etc/nginx/sites-available/default
ADD pictshare.conf /etc/nginx/sites-enabled/default

RUN chown -R www-data:www-data /opt/pictshare

And a nginx config file:

server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    root /opt/pictshare;
    index index.html index.php;

    # Make site accessible from http://localhost/
    server_name localhost;

    location / {
        try_files $uri $uri/ /index.php?url=$request_uri; # instead of htaccess mod_rewrite
    }


    location ~ \.php {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
    }

    location ~ /(upload|tmp|bin) {
       deny all;
       return 404;
    }

}

However, I has a question about multiple instances of pictshare using a single data folder, is this posible with the current implementation of pictshare?

Originally created by @aVolpe on GitHub (Mar 4, 2016). Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/7 Hello, I create a docker file to host pictshare: ``` FROM ishakuta/docker-nginx-php5 MAINTAINER Arturo Volpe <arturovolpe@gmail.com> RUN apt-get update && apt-get install -y php5-gd WORKDIR /opt RUN curl -O https://codeload.github.com/chrisiaut/pictshare/zip/master RUN apt-get install -y unzip RUN unzip master RUN mv pictshare-master pictshare && rm master RUN apt-get install -y php5-fpm WORKDIR /opt/pictshare RUN cp inc/example.config.inc.php inc/config.inc.php RUN chmod +x bin/ffmpeg ADD pictshare.conf /etc/nginx/sites-available/default ADD pictshare.conf /etc/nginx/sites-enabled/default RUN chown -R www-data:www-data /opt/pictshare ``` And a nginx config file: ``` server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /opt/pictshare; index index.html index.php; # Make site accessible from http://localhost/ server_name localhost; location / { try_files $uri $uri/ /index.php?url=$request_uri; # instead of htaccess mod_rewrite } location ~ \.php { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; } location ~ /(upload|tmp|bin) { deny all; return 404; } } ``` However, I has a question about multiple instances of pictshare using a single data folder, is this posible with the current implementation of pictshare?
kerem closed this issue 2026-02-25 23:40:22 +03:00
Author
Owner

@geek-at commented on GitHub (Mar 6, 2016):

Great work, thanks!

As for multiple instances.. the upload system could support it since it always looks for hashes before it saves them but at the moment the configuration file can't handle multiple settings for the same values

<!-- gh-comment-id:192875645 --> @geek-at commented on GitHub (Mar 6, 2016): Great work, thanks! As for multiple instances.. the upload system could support it since it always looks for hashes before it saves them but at the moment the configuration file can't handle multiple settings for the same values
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pictshare#4
No description provided.