Files
burkkyy 7b7330d9b4
Build and Push Docker Image / build (push) Successful in 1m16s
Changes to support build
2026-06-27 02:13:48 -07:00

61 lines
1.3 KiB
Markdown

# calebburke.dev
## Deploying
### Production Environment (remote)
TODO
### Test Production Build Locally
Files:
- [Dockerfile](./Dockerfile)
- [docker-compose.yml](./docker-compose.yml)
- Non-commited `.env` file
1. Create a `.env` file in top level directory with the appropriate values.
```bash
HOST_PORT=8080
API_PORT=8080
DB_HOST=db
DB_USERNAME=calebburkedev
DB_DATABASE=calebburkedev_production
DB_PASSWORD=DevPwd99!
DB_PORT=5432
DB_TRUST_SERVER_CERTIFICATE=true
VITE_APPLICATION_NAME="CALEB BURKE DEV"
VITE_API_BASE_URL="http://localhost:8080"
VITE_AUTH0_CLIENT_ID="TRlKzdNBynpo9tU1RSmnF0p8d3IEam4J"
VITE_AUTH0_AUDIENCE="alphane-api"
VITE_AUTH0_DOMAIN="https=//dev-7mdjzcgwirhocfwm.ca.auth0.com"
```
2. (optional) If testing build arguments do
```bash
docker compose build \
--build-arg RELEASE_TAG=$(date +%Y.%m.%d) \
--build-arg GIT_COMMIT_HASH=$(git rev-parse HEAD)
```
and then in the next step drop the `--build` flag.
3. Build and boot the production image via
```bash
docker compose up --build
```
4. Go to <http://localhost:3000/> and log in.
5. Navigate around the app and do some stuff and see if it works.
## Resources
- <https://github.com/cotes2020/jekyll-theme-chirpy>