From 5e3286befa555e517f09b407d1053c05ebf24f44 Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 14 Jan 2025 17:59:39 +0100 Subject: [PATCH] first commit --- .env | 12 ++++++++++++ .gitignore | 1 + README.md | 1 + compose.yml | 28 ++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..7c001b3 --- /dev/null +++ b/.env @@ -0,0 +1,12 @@ +MYSQL_USER=etherpad +MYSQL_DATABASE=etherpad +#MYSQL_PASSWORD= +#MYSQL_ROOT_PASSWORD= + +DB_TYPE=mysql +DB_HOST=padnetignet_mariadb +DB_NAME=etherpad +DB_USER=etherpad +#DB_PASS= +DB_CHARSET=utf8mb4 +#ADMIN_PASSWORD= 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..dc39485 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# pad.netig.net \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..84aefa0 --- /dev/null +++ b/compose.yml @@ -0,0 +1,28 @@ +services: + mariadb: + image: mariadb:latest + container_name: padnetignet_mariadb + env_file: + - .env + - ../passwords/padnetignet.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 + etherpad: + image: etherpad/etherpad:latest + container_name: padnetignet_etherpad + depends_on: + - mariadb + env_file: + - .env + - ../passwords/padnetignet.pass + ports: + - "127.0.0.1:9005:9001" + restart: unless-stopped