Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Troy-Argonauts/docker-cheesy-parts

Repository files navigation

docker-cheesy-parts

Docker image packaging for cheesy-parts.

How to use this image

This image depends on MySQL, and requires some environment variables (below).

The image can be built and run with:

docker build --tag argonauts/cheesy-parts .

docker run \
    --publish 9000:9000 \
    --env MYSQL_DATABASE=cheesy_parts \
    --env MYSQL_USER=team254 \
    --env MYSQL_PASSWORD=correcthorsebatterystaple \
    argonauts/cheesy-parts

Environment variables

The following environment variables can be configured:

  • PORT: HTTP port
  • MYSQL_HOST: MySQL hostname (default: localhost)
  • MYSQL_DATABASE: MySQL database name
  • MYSQL_USER: MySQL username
  • MYSQL_PASSWORD: MySQL password

Docker Compose

The easiest way to run this image with MySQL is with Docker Compose:

mkdir mysql

docker compose up --build

Edit docker-compose.yml to change the MySQL credentials.

The MySQL data directory is mounted to ./mysql by default.

Hosting with Heroku

Heroku is an easy and typically free way to host web applications, including the database. At the root of this project is a setup script heroku.sh that can do all the app setup needed:

./heroku.sh <app_name>

License

This project is under the GNU Generic Public License v3 to allow free use while ensuring it stays open.

About

Docker image packaging for cheesy-parts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published