forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.devcontainer.yaml
More file actions
51 lines (47 loc) · 2.01 KB
/
compose.devcontainer.yaml
File metadata and controls
51 lines (47 loc) · 2.01 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
43
44
45
46
47
48
49
50
51
services:
mysql:
# Smaller InnoDB buffer pool than the baseline compose.dev.yaml (1G).
# Lets the dev stack stay within a 2-core / 8 GB Codespace's budget
# after Ghost + 6 Vite dev servers are running. 256 MB is plenty for
# dev data volumes.
command: --innodb-buffer-pool-size=256M --innodb-log-buffer-size=64M --innodb-flush-log-at-trx_commit=0 --innodb-flush-method=O_DIRECT
mem_limit: 512m
restart: unless-stopped
redis:
restart: unless-stopped
mailpit:
restart: unless-stopped
ghost-dev:
# Mount the full repo so VS Code can edit apps/, e2e/, and root config files.
# The original ./ghost:/home/ghost/ghost mount from compose.dev.yaml is
# preserved via merge semantics so nodemon hot-reload still works for anyone
# running the backend the original way.
volumes:
- ./:/workspaces/Ghost:cached
# Override the default `pnpm dev` command. VS Code controls startup and the
# user runs backend/frontend dev servers as tasks (see .vscode/tasks.json).
command: ["sleep", "infinity"]
working_dir: /workspaces/Ghost
# The baseline healthcheck in compose.dev.yaml hits Ghost on :2368, but in
# the devcontainer Ghost isn't running until the user starts the dev task.
# Replace with a trivial check so the gateway's depends_on doesn't time out.
healthcheck:
test: ["CMD", "true"]
interval: 5s
timeout: 2s
retries: 1
start_period: 0s
ghost-dev-gateway:
# Point Caddy at the dev servers running inside the ghost-dev container
# instead of host.docker.internal (which is the default for the hybrid
# host/container dev setup).
environment:
GHOST_BACKEND: ghost-dev:2368
ADMIN_DEV_SERVER: ghost-dev:5174
ADMIN_LIVE_RELOAD_SERVER: ghost-dev:4200
PORTAL_DEV_SERVER: ghost-dev:4175
COMMENTS_DEV_SERVER: ghost-dev:7173
SIGNUP_DEV_SERVER: ghost-dev:6174
SEARCH_DEV_SERVER: ghost-dev:4178
ANNOUNCEMENT_DEV_SERVER: ghost-dev:4177
LEXICAL_DEV_SERVER: ghost-dev:4173