Touutae-lab / FastGraduation-DockerCompose

This is DockerCompose file for Easy setup for Fast Graduation Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fast Graduation: the Docker Compose repository

This is a Docker Compose file as a part of the Fast Graduation for CS CMU project.

Setup

You need to install Docker before use Instruction

  1. We use Docker Desktop for our deployment. So make sure to have it installed in advanced.

  2. Clone the repository.

git clone --recursive "https://github.com/Touutae-lab/FastGraduation-DockerCompose.git"

Usage

To start all the services defined in docker-compose.yml, run this command on your terminal.

docker compose up -d

If everything is fine, there will be a new directory -- data-volume -- after starting the docker compose services. Otherwise, you may need to check the permissions for the directory where docker-compose.yml is located.

Configuration

Most of the configurations (e.g. MySQL Root password, etc.) are defined in docker-compose.yml However, some specific settings depend on their platform. Our web server, for example, was developed using Next.js.

Everything should work fine then you should have data-volume directories

MySQL

Databases and settings will be generated automatically after the first run of the Docker container, stored in data-volume. You can duplicate such the directory to create a backup. If you remove data-volume, the container will generate a new another initial data-volume as if it be running for the first time.

You can also apply your SQL files (files ending with .sql) for initialization. Just place SQL files in initdb and the container will read and run the commands in those files automatically on the first run of the container.

Default Ports

You can modify ports in docker-compose.yml.

About

This is DockerCompose file for Easy setup for Fast Graduation Service

License:MIT License


Languages

Language:Shell 100.0%