Headless Craft CMS backend for the Rubin Observatory operational website.
- Clone the repo down
- Create a copy of
docker-compose-local-db.sample.yamland 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.mdfor provisioning your local database - Run
docker-compose -f docker-compose-local-db.yaml up --buildto 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 lsdocker exec -it <CONTAINER-ID> /bin/sh- If you're SSHing into a PostgreSQL container and want to enter the
psqlCLI: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-imageis used:docker pull us-central1-docker.pkg.dev/skyviewer/public-images/craft-base-image