This is a Docker Compose file as a part of the Fast Graduation for CS CMU project.
You need to install Docker before use Instruction
-
We use Docker Desktop for our deployment. So make sure to have it installed in advanced.
-
Clone the repository.
git clone --recursive "https://github.com/Touutae-lab/FastGraduation-DockerCompose.git"
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.
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
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.
- API Gatway at http://localhost:8000
- PhpMyAdmin at http://localhost:8080
- MariaDB at http://localhost:3306
- SuperToken at http://localhost:3567
- Front-end at http://localhost:3000
You can modify ports in docker-compose.yml
.