-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: revamp onboarding workflow w/ automated scripts 😮💨 (#101)
- Loading branch information
Showing
20 changed files
with
298 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This file helps us easily spin up our Postgres and Redis databases in local | ||
# development (this is not meant to be used in production), bypassing the need | ||
# to install and configure these services on our local machines. | ||
|
||
version: '3.9' | ||
|
||
services: | ||
postgres: | ||
container_name: oyster-postgres | ||
image: postgres:15-alpine | ||
ports: | ||
# We're using port 5433 to avoid any potential conflicts. | ||
- 5433:5432 | ||
volumes: | ||
- pg_data:/var/lib/postgresql/data | ||
environment: | ||
POSTGRES_DB: oyster | ||
POSTGRES_PASSWORD: oyster | ||
POSTGRES_USER: oyster | ||
|
||
postgres-test: | ||
container_name: oyster-postgres-test | ||
image: postgres:15-alpine | ||
ports: | ||
# We're using port 5434 to avoid any potential conflicts. | ||
- 5434:5432 | ||
environment: | ||
POSTGRES_DB: oyster_test | ||
POSTGRES_PASSWORD: oyster | ||
POSTGRES_USER: oyster | ||
|
||
redis: | ||
container_name: oyster-redis | ||
image: redis:latest | ||
ports: | ||
- 6379:6379 | ||
volumes: | ||
- redis_data:/data | ||
|
||
volumes: | ||
pg_data: | ||
redis_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DATABASE_URL=postgresql://colorstack:colorstack@localhost:5432/colorstack_test | ||
DATABASE_URL=postgresql://oyster:oyster@localhost:5434/oyster_test | ||
ENVIRONMENT=test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This is only needed for automatically generating types from the database | ||
# using `kysely-codegen`. See the following: | ||
# https://github.com/RobinBlomberg/kysely-codegen?tab=readme-ov-file#generating-type-definitions | ||
DATABASE_URL=postgresql://colorstack:colorstack@localhost:5432/colorstack | ||
DATABASE_URL=postgresql://oyster:oyster@localhost:5433/oyster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.