Skip to content

Commit 0b8d71b

Browse files
Merge pull request #5 from anugrahsinghal/feature/devx-gitpod
feat: config to setup dev env in gitpod with mysql and postgres
2 parents 5342072 + f5c52d3 commit 0b8d71b

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

.gitpod.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
tasks:
6+
- init: ./gradlew build
7+
- init: docker-compose up -d
8+
9+
10+
ports:
11+
- port: 3306
12+
onOpen: ignore
13+
- port: 5432
14+
onOpen: ignore
15+
16+
17+

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [unreleased]
8+
9+
- Add feature to setup the Project in Gitpod

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ For any queries, or support requests, please email us at [email protected], or
1313

1414
# Authors
1515
Created with :heart: by the folks at SuperTokens.io.
16+
17+
# Contribute
18+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)

docker-compose.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: '3'
2+
services:
3+
supertokens_mysql_db:
4+
image: mysql/mysql-server:latest
5+
container_name: mysql_supertokens
6+
restart: always
7+
ports:
8+
- "3306:3306"
9+
environment:
10+
MYSQL_ROOT_USER: root
11+
MYSQL_ROOT_PASSWORD: root
12+
MYSQL_DATABASE: supertokens
13+
MYSQL_ROOT_HOST: '%'
14+
deploy:
15+
resources:
16+
limits:
17+
cpus: "0.25"
18+
memory: 500M
19+
supertokens_postgres_db:
20+
image: postgres:12
21+
container_name: postgres_supertokens
22+
restart: always
23+
ports:
24+
- '5432:5432'
25+
environment:
26+
POSTGRES_PASSWORD: root
27+
POSTGRES_USER: root
28+
POSTGRES_DB: supertokens
29+
deploy:
30+
resources:
31+
limits:
32+
cpus: "0.25"
33+
memory: 500M

0 commit comments

Comments
 (0)