mirror of
https://github.com/Dokploy/templates.git
synced 2026-11-14 21:11:44 -06:00
Ref: - https://docs.docker.com/reference/compose-file/version-and-name https://docs.docker.com/compose/intro/history
28 lines
526 B
YAML
28 lines
526 B
YAML
services:
|
|
ghost:
|
|
image: ghost:6-alpine
|
|
restart: always
|
|
environment:
|
|
database__client: mysql
|
|
database__connection__host: db
|
|
database__connection__user: root
|
|
database__connection__password: example
|
|
database__connection__database: ghost
|
|
url: http://${GHOST_HOST}
|
|
|
|
volumes:
|
|
- ghost:/var/lib/ghost/content
|
|
|
|
db:
|
|
image: mysql:8.0
|
|
restart: always
|
|
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: example
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
|
|
volumes:
|
|
ghost:
|
|
db:
|