cms translucid
This commit is contained in:
parent
a966fdffe9
commit
456cb04448
1
config/dockers.env
Symbolic link
1
config/dockers.env
Symbolic link
@ -0,0 +1 @@
|
||||
.env
|
20
dockers/translucid/Dockerfile
Normal file
20
dockers/translucid/Dockerfile
Normal 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" ]
|
11
dockers/translucid/build.sh.non_utilise
Executable file
11
dockers/translucid/build.sh.non_utilise
Executable 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
|
46
dockers/translucid/docker-compose.yml
Normal file
46
dockers/translucid/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user