https://github.com/g4ze/byoc
container deployment platform
https://github.com/g4ze/byoc
aws aws-ecs-fargate aws-sdk-go-v2 golang nextjs postgresql
Last synced: 9 months ago
JSON representation
container deployment platform
- Host: GitHub
- URL: https://github.com/g4ze/byoc
- Owner: g4ze
- Created: 2024-06-08T21:51:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-13T15:32:03.000Z (over 1 year ago)
- Last Synced: 2025-04-04T13:21:16.922Z (about 1 year ago)
- Topics: aws, aws-ecs-fargate, aws-sdk-go-v2, golang, nextjs, postgresql
- Language: Go
- Homepage: https://g4ze.github.io/byoc/
- Size: 101 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This software enables you to deploy your containers with a single click.
Checkout all docs and implementation [here](https://g4ze.github.io/byoc/)
Read on LinkedIn [here](https://www.linkedin.com/posts/guptanilay1_bring-your-own-container-activity-7222729928209809408-VaSP?utm_source=share&utm_medium=member_desktop)
Read the tech blog [here](https://nilaygupta.hashnode.dev/bring-your-own-container)
## Database setup etc
### in the pkg/database dir
setup the db `docker run --name byoc_postgres -e POSTGRES_PASSWORD=Welcome -p 5432:5432 postgres:latest`
First time cmd:
[run db push to synchronize your schema with your database. It will also create the database if it doesn't exist.]
`go run github.com/steebchen/prisma-client-go db push`
Everytime model is changed, migrate your database and re-generate your prisma code:
`go run github.com/steebchen/prisma-client-go migrate dev --name add_comment_model`
Access the databse using:
`docker exec -it psql-dev psql -U postgres -d postgres`
`mkdir data`
`
docker run -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -v ./data:/var/lib/postgresql/data --name byoc-postgres -d postgres
`
```
docker run --name byoc_postgres \
-e POSTGRES_PASSWORD=Welcome \
-p 5432:5432 \
-v byoc_pg:/var/lib/postgresql/data \
postgres:latest
```
`connect to DBpsql -h localhost -U postgres`