-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathstack.yml
More file actions
42 lines (39 loc) · 1.25 KB
/
stack.yml
File metadata and controls
42 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
services:
ghost:
image: ghost:5-alpine
restart: always
ports:
- 8080:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: http://localhost:8080
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
#NODE_ENV: development
volumes:
- ghost:/var/lib/ghost/content
depends_on:
db:
# Using service_healthy requires adding a healthcheck
# condition: service_healthy
condition: service_started
restart: true
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- db:/var/lib/mysql
# Basic healthcheck to use with the service_healthy condition above.
# healthcheck:
# test: ["CMD-SHELL", "mysql -u root -p$$MYSQL_ROOT_PASSWORD" ]
# interval: 5s
volumes:
ghost:
db: