Skip to content

TimeEnjoyed/codejam2024

 
 

Repository files navigation

CodeJam Site

docker compose

Deploying

  1. Pull all images
docker compose pull database redis
  1. Build the docker image: docker compose build server
docker compose build server
  1. Copy the example configuration file from ./backend/app/config.example.toml to ./backend/app/config.toml
  2. Edit the configuration file
    1. The database user will be "postgres"
    2. The database host will be "database" (as the name of the service in the docker-compose.yaml file)
    3. The redis host will be "redis" (as the name of the service in the docker-compose.yaml file)
  3. Start the PostgreSQL and Redis containers
docker compose up -d database redis
  1. Start the docker container through docker compose
docker compose up -d server
  1. Visit website at http://localhost:8080

Providing more overrides

  1. Unignore the docker-compose.override.yaml in the .gitignore file
  2. Make changes
  3. Stage the updated docker-compose.override.yaml file
  4. Ignore the docker-compose.override.yaml file in the .gitignore file

About

Codejam 2024 Website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 41.8%
  • Svelte 41.4%
  • TypeScript 9.6%
  • CSS 3.8%
  • JavaScript 1.5%
  • Shell 0.7%
  • Other 1.2%