add docker-compose.yml exemples

This commit is contained in:
Jean-Christian Denis 2024-12-06 18:39:18 +01:00
parent de0438295e
commit bf0017a4af
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
8 changed files with 311 additions and 4 deletions

View file

@ -0,0 +1,63 @@
services:
# Nginx proxy manager
npmapp:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
container_name: npmapp
ports:
- 80:80
- 443:443
- 81:81
volumes:
- ./dcstable/npm/data:/data
- ./dcstable/npm/letsencrypt:/etc/letsencrypt
healthcheck:
test: ["CMD", "/usr/bin/check-health"]
interval: 10s
timeout: 3s
# Mariadb database
dcstabledb:
image: mariadb:latest
container_name: dcstabledb
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- ./dcstable/db:/var/lib/mysql
depends_on:
npmapp:
condition: service_healthy
environment:
MYSQL_ROOT_PASSWORD: dotclear_root
MYSQL_DATABASE: dotclear_db
MYSQL_USER: dotclear_user
MYSQL_PASSWORD: dotclear_pwd
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
# Doclear web application
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
volumes:
- ./dcstable/app:/var/www/dotclear
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: mysqlimb4
DC_DBHOST: dcstabledb
DC_DBNAME: dotclear_db
DC_DBUSER: dotclear_user
DC_DBPASSWORD: dotclear_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com
networks:
default:
name: npm

View file

@ -0,0 +1,40 @@
# jcpd/docker-dotclear:latest
services:
dcstabledb:
image: mariadb:latest
container_name: dcstabledb
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- ./dcstable/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: dotclear_root
MYSQL_DATABASE: dotclear_db
MYSQL_USER: dotclear_user
MYSQL_PASSWORD: dotclear_pwd
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
volumes:
- ./dcstable/app:/var/www/dotclear
ports:
- 80:80
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: mysqlimb4
DC_DBHOST: dcstabledb
DC_DBNAME: dotclear_db
DC_DBUSER: dotclear_user
DC_DBPASSWORD: dotclear_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com

View file

@ -0,0 +1,38 @@
services:
dcstabledb:
image: postgres
container_name: dcstabledb
restart: unless-stopped
environment:
POSTGRES_PASSWORD: dcstable_pwd
POSTGRES_USER: dcstable_user
POSTGRES_DB: dcstable_db
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./dcstable/db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 1s
timeout: 5s
retries: 10
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
ports:
- 80:80
volumes:
- ./dcstable/app:/var/www/dotclear
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: pgsql
DC_DBHOST: dcstabledb
DC_DBNAME: dcstable_db
DC_DBUSER: dcstable_user
DC_DBPASSWORD: dcstable_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com

View file

@ -0,0 +1,13 @@
services:
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
volumes:
- ./dcstable:/var/www/dotclear
ports:
- 80:80
environment:
DC_DBDRIVER: sqlite
DC_DBNAME: \var\www\dotclear\sqlite.db
DC_ADMINMAILFROM: contact@exemple.com

View file

@ -0,0 +1,69 @@
services:
# Nginx proxy manager
npmapp:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
container_name: npmapp
ports:
- 80:80
- 443:443
- 81:81
volumes:
- npm_data:/data
- npm_letsencrypt:/etc/letsencrypt
healthcheck:
test: ["CMD", "/usr/bin/check-health"]
interval: 10s
timeout: 3s
# Mariadb database
dcstabledb:
image: mariadb:latest
container_name: dcstabledb
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- dcstable_db:/var/lib/mysql
depends_on:
npmapp:
condition: service_healthy
environment:
MYSQL_ROOT_PASSWORD: dotclear_root
MYSQL_DATABASE: dotclear_db
MYSQL_USER: dotclear_user
MYSQL_PASSWORD: dotclear_pwd
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
# Doclear web application
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
volumes:
- dcstable_app:/var/www/dotclear
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: mysqlimb4
DC_DBHOST: dcstabledb
DC_DBNAME: dotclear_db
DC_DBUSER: dotclear_user
DC_DBPASSWORD: dotclear_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com
networks:
default:
name: npm
volumes:
npm_data:
npm_letsencrypt:
dcstable_db:
dcstable_app:

View file

@ -0,0 +1,43 @@
# jcpd/docker-dotclear:latest
services:
dcstabledb:
image: mariadb:latest
container_name: dcstabledb
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- dcstable/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: dotclear_root
MYSQL_DATABASE: dotclear_db
MYSQL_USER: dotclear_user
MYSQL_PASSWORD: dotclear_pwd
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
volumes:
- dcstable/app:/var/www/dotclear
ports:
- 80:80
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: mysqlimb4
DC_DBHOST: dcstabledb
DC_DBNAME: dotclear_db
DC_DBUSER: dotclear_user
DC_DBPASSWORD: dotclear_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com
volumes:
dcstable:

View file

@ -0,0 +1,41 @@
services:
dcstabledb:
image: postgres
container_name: dcstabledb
restart: unless-stopped
environment:
POSTGRES_PASSWORD: dcstable_pwd
POSTGRES_USER: dcstable_user
POSTGRES_DB: dcstable_db
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- dcstable:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 1s
timeout: 5s
retries: 10
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
ports:
- 80:80
volumes:
- dcstable/app:/var/www/dotclear
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: pgsql
DC_DBHOST: dcstabledb
DC_DBNAME: dcstable_db
DC_DBUSER: dcstable_user
DC_DBPASSWORD: dcstable_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com
volumes:
dcstable:

View file

@ -1,10 +1,10 @@
services:
dotclear:
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dotclear
container_name: dcstableapp
restart: unless-stopped
volumes:
- dotclear:/var/www/dotclear
- dcstable:/var/www/dotclear
ports:
- 80:80
environment:
@ -13,4 +13,4 @@ services:
DC_ADMINMAILFROM: contact@exemple.com
volumes:
dotclear:
dcstable: