build and push container with forgejo actions
This commit is contained in:
parent
8c7fb8c6bf
commit
91368f5c8e
6 changed files with 65 additions and 34 deletions
24
README.md
24
README.md
|
|
@ -19,4 +19,26 @@
|
|||
|
||||
- Tailwind CSS
|
||||
|
||||
I have a production build of the app hosted in docker served with caddy on a vps running nixos that you can access here: https://recipe-app.fredzernia.com
|
||||
#### Infra/CI:
|
||||
|
||||
This Forgejo instance is hosted on a VPS running NixOS.
|
||||
The Forgejo Runner is hosted in a LXC container running on a local nix server
|
||||
The runner builds the containers and pushes them to this Forgejo registry
|
||||
In the frontend container I bundle the compiled src with Caddy to run as a standalone app. The exposed frontend port can then be served via reverse proxy.
|
||||
|
||||
#### Try it out:
|
||||
|
||||
https://recipe-app.fredzernia.com
|
||||
|
||||
#### Run it yourself:
|
||||
|
||||
```
|
||||
mkdir recipe_app && cd recipe_app
|
||||
wget https://forgejo.fredzernia.com/fred/recipe_app/raw/branch/main/docker-compose.yaml
|
||||
wget https://forgejo.fredzernia.com/fred/recipe_app/raw/branch/main/example.env
|
||||
mv example.env .env # Change these values if you want
|
||||
docker compose pull
|
||||
docker compose up db -d
|
||||
docker compose run backend npx prisma migrate deploy
|
||||
docker compose up -d
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue