Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zess: deployment #46

Merged
merged 10 commits into from
Aug 26, 2024
Merged

zess: deployment #46

merged 10 commits into from
Aug 26, 2024

Conversation

Topvennie
Copy link
Contributor

@Topvennie Topvennie commented Aug 14, 2024

  • Use one docker for production
  • Switch to docker compose (R.I.P docker-compose)
  • Add a workflow to build the project and push it on main

To test out the development environment:

To test out the production environment:

  • Build the container docker build . --tag zess
  • Configure the env variables for the backend. For this test setup I recommend
    1. Copying dev.env to .env
    2. Set ZAUTH_REDIRECT_URI="http://localhost:4000"
  • Start the database docker compose -f docker-compose.yml up zess-db -d
  • Start the production build docker run -v ${PWD}/vingo/.env:/.env --add-host=host.docker.internal:host-gateway -p 4000:4000 zess
    • -v ${PWD}/vingo/.env:/.env adds the .env file to the container
    • --add-host=host.docker.internal:host-gateway allows the zess container to communicate with the running database container
    • -p 4000:4000 allows us to connect to zess
  • 🏄 to http://localhost:4000

Closes #45

@Topvennie Topvennie requested a review from hannes-dev August 14, 2024 22:57
@Topvennie Topvennie marked this pull request as draft August 15, 2024 09:20
@Topvennie Topvennie marked this pull request as ready for review August 15, 2024 10:03
@Topvennie Topvennie changed the title Deployment zess: deployement Aug 15, 2024
@Topvennie Topvennie changed the title zess: deployement zess: deployment Aug 15, 2024
dev.sh Show resolved Hide resolved
vingo/main.go Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
vingo/main.go Outdated Show resolved Hide resolved
@Topvennie Topvennie requested a review from hannes-dev August 16, 2024 14:18
@hannes-dev hannes-dev merged commit 903bbe6 into main Aug 26, 2024
3 checks passed
@hannes-dev hannes-dev deleted the deployement branch August 26, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vingo: CALLBACK_PATH
2 participants