From fdf963e9029e76fd9f884d9b77836cff12be920a Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 14 Jan 2025 17:54:09 +0100 Subject: [PATCH] first commit --- .env | 15 +++++++++++++++ .gitignore | 1 + README.md | 1 + compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ conf/php/uploads.ini | 2 ++ 5 files changed, 59 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml create mode 100644 conf/php/uploads.ini diff --git a/.env b/.env new file mode 100644 index 0000000..4af8efe --- /dev/null +++ b/.env @@ -0,0 +1,15 @@ +REDIS_PORT_6379_TCP_ADDR=lachaussettedebraspartsfr_redis +REDIS_PORT_6379_TCP_PORT=6379 + +MYSQL_USER=wordpress +MYSQL_DATABASE=wordpress +#MYSQL_PASSWORD= +#MYSQL_ROOT_PASSWORD= + +WORDPRESS_DB_HOST=lachaussettedebraspartsfr_mariadb +WORDPRESS_DB_USER=wordpress +#WORDPRESS_DB_PASSWORD= +WORDPRESS_DB_NAME=wordpress +WORDPRESS_CONFIG_EXTRA="/* Redis */ + define('WP_REDIS_HOST', 'lachaussettedebraspartsfr_redis'); + define('WP_REDIS_PORT', '6379');" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57d9655 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +volumes/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..6b35f99 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# lachaussettedebrasparts.fr diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..92eefd9 --- /dev/null +++ b/compose.yml @@ -0,0 +1,40 @@ +services: + redis: + image: redis:latest + container_name: lachaussettedebraspartsfr_redis + volumes: + - ./volumes/redis:/data + command: redis-server --appendonly yes + restart: unless-stopped + mariadb: + image: mariadb:latest + container_name: lachaussettedebraspartsfr_mariadb + env_file: + - .env + - ../passwords/lachaussettedebraspartsfr.pass + volumes: + - ./volumes/mysql:/var/lib/mysql + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + start_period: 10s + interval: 10s + timeout: 5s + retries: 3 + command: ['mariadbd', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci'] + restart: unless-stopped + wordpress: + image: wordpress:latest + container_name: lachaussettedebraspartsfr_wordpress + depends_on: + - mariadb + extra_hosts: + - "lachaussettedebrasparts.fr:103.177.249.4" + env_file: + - .env + - ../passwords/lachaussettedebraspartsfr.pass + ports: + - "127.0.0.1:8002:80" + volumes: + - ./volumes/wordpress:/var/www/html + - ./conf/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini + restart: unless-stopped diff --git a/conf/php/uploads.ini b/conf/php/uploads.ini new file mode 100644 index 0000000..ccbf24f --- /dev/null +++ b/conf/php/uploads.ini @@ -0,0 +1,2 @@ +upload_max_filesize = 512M +post_max_size = 512M