Browse Source

actualización de varios ficheros

master
kasilda 7 months ago
parent
commit
8d20212b42
  1. 34
      Dockerfile
  2. 49
      docker-compose.yml

34
Dockerfile

@ -1,29 +1,29 @@
FROM registry.sindominio.net/debian
RUN apt-get update && apt-get install -y
# Instalar todos los módulos necesarios de PHP
RUN apt-get update && apt-get -qy install \
apt-get -qy install php7.4 php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-imagick php-json \
apt-get clean
RUN apt-get update
#RUN apt-get install apt-utils -y
RUN apt-get -qy install php7.4 php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-imagick php-json php-bz2
RUN apt-get install wget tar -y
# Cómo hacer para que se actualice y descargue la última versión
RUN curl -fsSL -o nextcloud.tar.bz2 \
"https://download.nextcloud.com/server/prereleases/nextcloud-22.2.0.tar.bz2" && \
curl -fsSL -o nextcloud.tar.bz2.asc \
"https://download.nextcloud.com/server/releases/nextcloud-22.2.0.tar.bz2.asc" && \
RUN wget https://download.nextcloud.com/server/releases/nextcloud-22.2.0.tar.bz2
RUN wget https://download.nextcloud.com/server/releases/nextcloud-22.2.0.tar.bz2.md5
# Verificar la firma (habrá que encontrar ese archivo, no sé cómo
RUN gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A && \
gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2 && \
rm nextcloud.tar.bz2.asc nextcloud.tar.bz2 && \
EXPOSE ?¿?¿?
VOLUME /Nextcloud/
RUN md5sum --check nextcloud-22.2.0.tar.bz2.md5
RUN tar xvjf nextcloud-22.2.0.tar.bz2
COPY www.conf /etc/php/7.4/fpm/pool.d/www.conf
RUN mkdir -p /run/php
RUN chmod 777 /var/log
RUN chmod 777 /run/php
# Vamos a la carpeta nextcloud recien creada, ponemos el puerto y creamos un volume para indicar luego la base de datos
WORKDIR nextcloud
ENTRYPOINT ["/bin,bash","/usr/local/bin/docker-entrypoint.sh"]
EXPOSE 9000
VOLUME /nextcloud/
CMD ["/usr/sbin/php-fpm7.3","--nodaemonize"]
CMD ["/usr/sbin/php-fpm7.4","--nodaemonize"]

49
docker-compose.yml

@ -1,55 +1,8 @@
version: '3'
networks:
omekan:
external: false
volumes:
db:
data:
services:
db:
#image: registry.sindominio.net/mariadb
build: ./mariadb
container_name: db
networks:
- nextcloud
volumes:
- db:/var/lib/mysql
environment:
MYSQL_DATABASE: nextcloud_sd
MYSQL_USER: nextcloud_sd
MYSQL_PASSWORD: nextcloud_sd
phpfpm:
#image: registry.sindominio.net/php-omeka-s
build: .
container_name: phpfpm
networks:
- omekan
links:
- db
volumes:
- data:/sindominio
environment:
MYSQL_DATABASE: omeka_sd
MYSQL_USER: omeka_sd
MYSQL_PASSWORD: omeka_sd
MYSQL_HOST: db
nginx:
#image: registry.sindominio.net/nginx-omeka-s
build: "./nginx-omeka-s/"
container_name: nginx
restart: always
depends_on:
- phpfpm
networks:
- omekan
links:
- phpfpm
ports:
- "8090:80"
volumes:
- data:/sindominio
user: '1000:1000'

Loading…
Cancel
Save