mirror of
https://github.com/michivonah/docker.git
synced 2025-12-22 20:36:27 +01:00
add docker-compose for ghost cms
This commit is contained in:
parent
84d74e2d51
commit
7138bae1dc
1 changed files with 28 additions and 0 deletions
28
ghost/docker-compose.yml
Normal file
28
ghost/docker-compose.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
ghost:
|
||||||
|
image: ghost:5-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 2368:2368
|
||||||
|
environment:
|
||||||
|
database__client: mysql
|
||||||
|
database__connection__host: db
|
||||||
|
database__connection__user: root
|
||||||
|
database__connection__password: ghost
|
||||||
|
database__connection__database: ghost
|
||||||
|
url: https://example.com
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/ghost/content
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mysql:8.0
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: ghost
|
||||||
|
volumes:
|
||||||
|
- ./db:/var/lib/mysql
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue