docker-calendso/README.md

74 lines
2.0 KiB
Markdown
Raw Normal View History

<!-- PROJECT LOGO -->
<div align="right">
<a href="https://github.com/calendso/calendso">
2021-10-17 05:58:03 +00:00
<img src="https://cal.com/logo.svg" alt="Logo" width="160" height="65">
</a><br/>
2021-10-17 06:10:55 +00:00
<a href="https://cal.com">Website</a>
·
<a href="https://github.com/calendso/calendso-docker/issues">Community Support</a>
</div>
2021-07-02 18:53:00 +00:00
# calendso-docker
2021-07-02 18:53:00 +00:00
The Docker configuration for Calendso is an effort powered by people within the community. Calendso does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
## Requirements
Make sure you have `docker` & `docker-compose` installed on the server / system.
## Getting Started
1. Clone calendso-docker
```bash
git clone --recursive https://github.com/calendso/docker.git calendso-docker
```
2021-09-08 21:27:29 +00:00
2. Change into the directory
```bash
cd calendso-docker
```
3. Rename `.env.example` to `.env` and update `.env` if needed.
2021-09-08 21:27:29 +00:00
4. Build and start calendso
```bash
docker-compose up --build
```
5. Start prisma studio
```bash
docker-compose exec calendso npx prisma studio
```
2021-09-08 21:27:29 +00:00
6. Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
2021-09-08 21:27:29 +00:00
7. Click on the `User` model to add a new user record.
8. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
2021-09-08 21:27:29 +00:00
9. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
## Git Submodules
This repository uses a git submodule.
If you cloned the repository without using `--recursive`, then you can initialize and clone the submodule with the following steps.
1. Init the submodule
```bash
git submodule init
```
2. Update the submodule
```bash
git submodule update --remote
```
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)