-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (29 loc) · 1.21 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
services:
ghost:
image: ghost:latest
container_name: ghost-dev
restart: unless-stopped
ports:
- "2368:2368"
environment:
url: http://localhost:2368
database__client: sqlite3
database__connection__filename: /var/lib/ghost/content/data/ghost-local.db
volumes:
- ghost_content:/var/lib/ghost/content
# Mount this theme repo straight into content/themes so `yarn dev`
# rebuilds (assets/built/*) are picked up on a browser refresh.
# Not :ro -- Ghost's entrypoint chowns the whole tree to the node
# user on boot, which fails (and aborts startup) on a read-only
# bind mount.
- ./:/var/lib/ghost/content/themes/sourcefolio
# Shadow heavy/irrelevant dirs with anonymous volumes so Ghost's
# entrypoint doesn't try to chown hundreds of thousands of files.
- /var/lib/ghost/content/themes/sourcefolio/node_modules
- /var/lib/ghost/content/themes/sourcefolio/.git
- /var/lib/ghost/content/themes/sourcefolio/dist
# Auto-apply routes.yaml (adds the /blog/ collection) without
# needing to upload it manually via Admin.
- ./routes.yaml:/var/lib/ghost/content/settings/routes.yaml
volumes:
ghost_content: