Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.09 KB

File metadata and controls

42 lines (30 loc) · 1.09 KB

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