0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-04 02:01:58 -05:00
ghost/.github/scripts
Chris Raible 5547c0b6f0
Added .env.example file to simplify getting started with docker compose (#22247)
no issue

- To run Ghost itself in docker compose, you need to enable the `ghost`
compose profile by setting `COMPOSE_PROFILES=ghost`.
- This is done for you if you use the `yarn docker:*` commands, but if
you run any other `docker compose ...` commands manually, the `ghost`
profile won't be enabled by default.
- The easiest way to set `COMPOSE_PROFILES` is with a `.env` file in the
root of the repo. This `.env.example` file is a template than can be
easily copied to `.env` by running `cp .env.example .env`, which will in
turn enable the `ghost` profile.
- It also includes commented out environment variables that are useful
when running Ghost in Docker compose, such as stripe keys, app flags
(for running e.g. portal), and `DEBUG` modes.

This commit also includes some minor changes to the `dev.js` script:
- Adds a list of `availableFlags`, including all the app flags that it
will accept
- Adds validation to log an error and exit if any invalid flags are
passed. This will force us to keep this list up to date if/when we add
more app flags
- Adds a `show-flags` flag, which will print all the available flags,
along with a description, then immediately exit.

Ultimately this makes getting started with docker compose more straight
forward:
- Clone the repo
- Run `cp .env.example .env` to enable the `ghost` profile
- Run `docker compose up`
2025-02-19 13:16:30 -08:00
..
bump-version.js Exported Git commit hash from update script 2024-09-24 14:08:38 +02:00
clean.js Added docker:setup yarn script (#22058) 2025-01-27 21:37:40 -08:00
dev.js Added .env.example file to simplify getting started with docker compose (#22247) 2025-02-19 13:16:30 -08:00
release-apps.js Updated release process for Search and Comments UI (#22146) 2025-02-10 18:48:52 +07:00
setup.js Added Dev Container setup (#21279) 2024-10-24 11:15:08 -07:00
update-compose.js Improved docker development setup (#22177) 2025-02-18 23:47:39 +00:00
update-dockerfile.js Improved docker development setup (#22177) 2025-02-18 23:47:39 +00:00