[GH-ISSUE #7] docker #180

Closed
opened 2026-02-27 12:41:00 +03:00 by kerem · 0 comments
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-27 12:41:00 +03:00
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#180
No description provided.