Skip to content

Commit

Permalink
Merge pull request #521 from rharkor/rec
Browse files Browse the repository at this point in the history
Rec
  • Loading branch information
rharkor authored Jan 30, 2024
2 parents 342d543 + 514da65 commit eba2837
Show file tree
Hide file tree
Showing 33 changed files with 1,996 additions and 48,345 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:

jobs:
check:
env:
node_version: 20
name: Check
runs-on: ubuntu-latest
steps:
Expand All @@ -36,3 +34,20 @@ jobs:
run: npm run depcheck
- name: Banned Keywords
run: bash ./packages/scripts/banned-keywords.sh

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Set example env
run: npm run init:env
- name: Build
run: npm run build
9 changes: 0 additions & 9 deletions .github/workflows/deploy-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,3 @@ jobs:
docker compose pull
docker system prune -f
docker compose up -d
- name: Create Sentry release
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
91 changes: 91 additions & 0 deletions docker/docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
version: "3.8"

services:
app:
build:
context: .
dockerfile: packages/app/Dockerfile
container_name: #{PROJECT_NAME}#_app
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
ports:
- "3000:3000"

crons:
build:
context: .
dockerfile: packages/app/crons/Dockerfile
container_name: #{PROJECT_NAME}#_crons
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"

docs:
build:
context: .
dockerfile: packages/docs/Dockerfile
container_name: #{PROJECT_NAME}#_docs
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
ports:
- "3001:3000"
#? You can comment the volumes section if you are not using the static files
volumes:
- .:/docs/.docusaurus

landing:
build:
context: .
dockerfile: packages/landing/Dockerfile
container_name: #{PROJECT_NAME}#_landing
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
ports:
- "3002:3000"

db:
image: postgres:latest
container_name: #{PROJECT_NAME}#_db
restart: unless-stopped
volumes:
- #{PROJECT_NAME}#-postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASS}
POSTGRES_DB: ${DATABASE_NAME}

logging:
driver: "json-file"
options:
max-size: "50m"
ports:
- "5432:5432"

redis:
image: redis:latest
restart: unless-stopped
container_name: #{PROJECT_NAME}#_redis
command: /bin/sh -c "redis-server --requirepass ${REDIS_PASSWORD}"
logging:
driver: "json-file"
options:
max-size: "50m"
volumes:
- #{PROJECT_NAME}#-redis-data:/data
ports:
- "6379:6379"

volumes:
#{PROJECT_NAME}#-postgres-data:
#{PROJECT_NAME}#-redis-data:
10 changes: 5 additions & 5 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
container_name: #{PROJECT_NAME}#_db
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
- #{PROJECT_NAME}#-postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASS}
Expand All @@ -65,19 +65,19 @@ services:
- "5432:5432"

redis:
image: redis:latest
restart: unless-stopped
container_name: #{PROJECT_NAME}#_redis
image: redis:latest
command: /bin/sh -c "redis-server --requirepass ${REDIS_PASSWORD}"
logging:
driver: "json-file"
options:
max-size: "50m"
volumes:
- redis-data:/data
- #{PROJECT_NAME}#-redis-data:/data
ports:
- "6379:6379"

volumes:
postgres-data:
redis-data:
#{PROJECT_NAME}#-postgres-data:
#{PROJECT_NAME}#-redis-data:
Loading

0 comments on commit eba2837

Please sign in to comment.