Headless Craft CMS backend for the Rubin Observatory operational website.
- Clone the repo down
- Create a copy of
docker-compose-local-db.sample.yaml
and name itdocker-compose-local-db.yaml
- Ask someone on the team for the values to fill in the
docker-compose-local.db.yaml
- Follow the instructions in
./db/README.md
for provisioning your local database - Run
docker-compose -f docker-compose-local-db.yaml up --build
to bring the Docker Compose orchestration up - Navigate to http://localhost:8080/admin to log in to the Craft dashboard
- Delete errant and bloated volumes:
docker volume prune
- Delete stopped and unused containers, networks, and images:
docker system prune
- Shut down running containers gracefully:
docker-compose -f docker-compose-local-db.yml down
- SSH into a running container:
docker container ls
docker exec -it <CONTAINER-ID> /bin/sh
- If you're SSHing into a PostgreSQL container and want to enter the
psql
CLI:psql -d craft -U craft
- When you need to do composer operations:
docker run -v ${PWD}/api:/app composer <require/remove> <package>
- When working locally, in order to ensure the latest docker
craft-base-image
is used:docker pull us-central1-docker.pkg.dev/skyviewer/public-images/craft-base-image