first commit
This commit is contained in:
commit
70b6943fc4
8
README.md
Normal file
8
README.md
Normal file
|
@ -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
|
3
ghost_blog/.gitignore
vendored
Normal file
3
ghost_blog/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.env*
|
||||
content/
|
||||
mysql/
|
11
ghost_blog/README.md
Normal file
11
ghost_blog/README.md
Normal file
|
@ -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
|
||||
|
||||
|
31
ghost_blog/docker-compose.yaml
Normal file
31
ghost_blog/docker-compose.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue