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

feat(infra): Composer to build a full-stack production environment #1074

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Rohanlogs
Copy link
Contributor

@Rohanlogs Rohanlogs commented Jan 9, 2025

Context

Currently, there exists a composer yml and a dockerfile in root directory, but they don't serve too much purpose. This PR aims to add setup scripts, that builds a production environment with authentication, and would ideally work both locally and with a domain & HTTPS.

In order to run this locally, this needs to be merged: 2004Scape/Website#7

Description

  • Adds a full-stack docker composer, that builds a production environment
  • Creates database within the container (with phpMyAdmin, or Prisma studio for anyone wanting web interface)
  • Waits for database to build and runs migrations automatically
  • Services:
    • MySQL
    • Migration runner
    • Website
    • Logger
    • Friend
    • Login
    • Server

TODO:

  • Merge #7 and fix website service clone in composer
  • Fix world json generation in composer (needs to be more dynamic)
  • Add either phpMyAdmin service, or Prisma studio
  • Add Linux prod build script (currently only windows .bat exists)
  • Add and configure Nginx service sigh
  • Test on live Ubuntu domain & https
  • Update readme
  • Add instructions for a full-stack dev build (fixes add instructions for full stack setup  #783)

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.

1 participant