cms translucid

This commit is contained in:
HPL 2024-11-25 09:38:24 +01:00
parent a966fdffe9
commit 456cb04448
4 changed files with 78 additions and 0 deletions

1
config/dockers.env Symbolic link
View File

@ -0,0 +1 @@
.env

View File

@ -0,0 +1,20 @@
# Utilisation de l'image officielle PHP avec Apache
FROM php:8.1-apache
RUN apt-get update && apt-get install -y git
RUN docker-php-ext-install mysqli
RUN a2enmod rewrite
WORKDIR /var/www/html
RUN git clone https://github.com/simonvdfr/Translucide.git .
RUN chown -R www-data:www-data /var/www/html
EXPOSE 80
#ENV PAHEKO_DIR /var/www/paheko
#COPY dockers/paheko/config/factory_cron.sh ${PAHEKO_DIR}/
#VOLUME [ "${PAHEKO_DIR}/users" ]

View File

@ -0,0 +1,11 @@
#!/bin/bash
KAZ_ROOT=$(cd "$(dirname $0)/../.."; pwd)
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
setKazVars
printKazMsg "\n *** Création du Dockerfile translucid"
cd "${KAZ_ROOT}"
docker build --no-cache -t translucid . -f dockers/translucid/Dockerfile

View File

@ -0,0 +1,46 @@
services:
apache:
build: .
container_name: translucid-app
networks:
- translucidNet
- postfixNet
volumes:
- translucid:/var/www/html
depends_on:
- db
labels:
- "traefik.enable=true"
- "traefik.http.routers.translucid.rule=Host(`translucid.kazkouil.fr`)"
- "traefik.docker.network=translucidNet"
db:
image: mariadb:11.4
container_name: translucid-DB
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: ${restartPolicy}
volumes:
- ./initdb.d:/docker-entrypoint-initdb.d:ro
- translucidDB:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
env_file:
- ../../secret/env-wpDB
networks:
- translucidNet
healthcheck: # utilisé par init-db.sh pour la créa d'orga
test: ["CMD", 'healthcheck.sh', '--su-mysql', '--connect', '--innodb_initialized']
interval: 30s
timeout: 30s
retries: 5
volumes:
translucid:
translucidDB:
networks:
translucidNet:
external: true
name: translucidNet
postfixNet:
external: true
name: postfixNet