Este commit está contenido en:
Your Name
2020-05-28 10:23:24 +00:00
padre ad101a2abd
commit d362564b07
Se han modificado 4 ficheros con 145 adiciones y 0 borrados

Ver fichero

@@ -0,0 +1,54 @@
version: '2'
services:
gnusocial:
build: ./gnusocial
restart: always
container_name: gnusocial
hostname: gnusocial
entrypoint:
- /bin/bash
- /entrypoint.sh
volumes:
- ./gnusocial/entrypoint.sh:/entrypoint.sh:ro
- ./gnusocial/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
- ./gnusocial/htaccess:/usr/local/apache2/htdocs/public/.htaccess:ro
- ./gnusocial/php.ini:/etc/php/7.3/fpm/php.ini:ro
- ./gnusocial/config.php:/gnusocial/config.php
- ./gnusocial/file:/gnusocial/file
- ./gnusocial/avatar:/gnusocial/public/avatar
# - ./gnusocial/ActivityPub:/gnusocial/plugins/ActivityPub
expose:
- 80
depends_on:
- mariadb-gnusocial
networks:
mynet:
ipv4_address: 172.132.0.101
mariadb-gnusocial:
image: mariadb:10
container_name: mariadb-gnusocial
hostname: mariadb-gnusocial
restart: always
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=gnus0c14l
- MYSQL_DATABASE=gnusocial
- MYSQL_USER=gnusocial
- MYSQL_PASSWORD=gnus0c14l
volumes:
- ./mariadb:/var/lib/mysql
expose:
- 3306
networks:
mynet:
ipv4_address: 172.132.0.102
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 172.132.0.0/24

Ver fichero

@@ -0,0 +1,39 @@
FROM httpd
RUN apt update && apt -y upgrade && apt install -y git \
openssl \
php7.3 \
php7.3-fpm \
php7.3-cli \
php7.3-curl \
php7.3-exif \
php7.3-gd \
php7.3-intl \
php7.3-json \
php7.3-mbstring \
php7.3-mysql \
php7.3-gmp \
php7.3-bcmath \
php7.3-opcache \
php7.3-readline \
php7.3-xml \
php7.3-ds \
php7.3-mailparse \
#libapache2-mod-php \
sendmail \
gettext \
locales && apt clean
RUN sed -i -e 's/# es_ES.UTF-8 UTF-8/es_ES.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LANG es_ES.UTF-8
ENV LANGUAGE es_ES:es
ENV LC_ALL es_ES.UTF-8
RUN git clone --depth=1 https://gitea.hatthieves.es/cloud/gnu-social /gnusocial
RUN git clone --depth=1 https://github.com/cweiske/xmpphp /xmpphp
RUN mkdir -p /gnusocial/plugins/Xmpp/extlib \
&& mv /xmpphp/XMPPHP /gnusocial/plugins/Xmpp/extlib \
&& sed -i "s/require_once 'XMPPHP\//require_once '/" /gnusocial/plugins/Xmpp/extlib/XMPPHP/* \
&& rm -rf /xmpphp
WORKDIR /gnusocial
#RUN make && chown www-data.www-data -R /gnusocial \
RUN chown www-data.www-data -R /gnusocial \
&& rm -rf /usr/local/apache2/htdocs/ \
&& ln -sf /gnusocial /usr/local/apache2/htdocs

Ver fichero

@@ -0,0 +1,48 @@
<?php
if (!defined('GNUSOCIAL')) { exit(1); }
$config['site']['name'] = 'GNUSocial/HatThieves.es';
$config['site']['server'] = 'gnusocial.hatthieves.es';
$config['site']['path'] = '';
$config['site']['ssl'] = 'never';
$config['site']['sslproxy'] = true;
$config['site']['language'] = 'es';
$config['site']['theme'] = 'neo';
$config['site']['email'] = 'webmaster@hatthieves.es';
$config['site']['broughtby'] = 'HatThieves';
$config['site']['broughtbyurl'] = 'www.hatthieves.es';
$config['site']['timezone'] = 'Europe/Madrid';
$config['site']['notice'] = 'GNUSocial/HatThieves server with ActivityPub Alpha';
//$config['site']['logfile'] = '/gnusocial/log.txt';
//$config['site']['logdebug'] = true;
$config['db']['database'] = 'mysqli://gnusocial:gnus0c14l@mariadb-gnusocial/gnusocial';
$config['db']['type'] = 'mysql';
// Uncomment below for better performance. Just remember you must run
// php scripts/checkschema.php whenever your enabled plugins change!
//$config['db']['schemacheck'] = 'script';
$config['site']['profile'] = 'public';
/*GNUsocial::addPlugin('Xmpp', array(
'enabled' => true,
'host' => 'hatthieves.es',
'server' => 'hatthieves.es',
'user' => 'update',
'resource' => 'gnusocial',
'password' => 'upd4t3.',
'public' => array('ale@hatthieves.es')
));*/
$config['queue']['enabled'] = true;
$config['queue']['daemon'] = true;
$config['attachments']['file_quota'] = 20971520;
$config['attachments']['user_quota'] = 209715200;
$config['attachments']['monthly_quota'] = 209715200;
//GNUsocial::delPlugin('OpenID');

Ver fichero

@@ -0,0 +1,4 @@
#!/bin/bash
/etc/init.d/php7.3-fpm start
su www-data -s /bin/bash -c "/gnusocial/scripts/startdaemons.sh"
httpd -DFOREGROUND