From 70b6943fc4e2926cac8676df5a7b1f6cadf31592 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 2 Sep 2022 14:13:51 +0200 Subject: [PATCH] first commit --- README.md | 8 ++++++++ ghost_blog/.gitignore | 3 +++ ghost_blog/README.md | 11 +++++++++++ ghost_blog/docker-compose.yaml | 31 +++++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 README.md create mode 100644 ghost_blog/.gitignore create mode 100644 ghost_blog/README.md create mode 100644 ghost_blog/docker-compose.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..0031366 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Docker Container Templates + +Repository for ready-to-go Services running in docker containers via docker-compose. + +#### requirements: + + - installed system with docker-compose + - access to /services, most services will be running there diff --git a/ghost_blog/.gitignore b/ghost_blog/.gitignore new file mode 100644 index 0000000..269d02b --- /dev/null +++ b/ghost_blog/.gitignore @@ -0,0 +1,3 @@ +.env* +content/ +mysql/ diff --git a/ghost_blog/README.md b/ghost_blog/README.md new file mode 100644 index 0000000..5cc9de5 --- /dev/null +++ b/ghost_blog/README.md @@ -0,0 +1,11 @@ +# Docker Container for running Ghost blog + +https://ghost.org + + +#### requirements: + + - /services/ghost created, copy docker-compose.yaml to this. + - customized .env file + + diff --git a/ghost_blog/docker-compose.yaml b/ghost_blog/docker-compose.yaml new file mode 100644 index 0000000..10c2674 --- /dev/null +++ b/ghost_blog/docker-compose.yaml @@ -0,0 +1,31 @@ +version: '3.3' +services: + ghost: + image: ghost:latest + container_name: ghost_site + restart: always + depends_on: + - db + ports: + - 8080:2368 + environment: + url: ${URL} + database__client: mysql + database__connection__host: db + database__connection__user: ${database__connection__user} + database__connection__password: ${database__connection__password} + database__connection__database: ${database__connection__database} + volumes: + - /services/ghost/content:/var/lib/ghost/content + + db: + image: mariadb:latest + container_name: ghost_db + restart: always + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_USER: ${MYSQL_USER} + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + MYSQL_DATABASE: ${MYSQL_DATABASE} + volumes: + - /services/ghost/mysql:/var/lib/mysql