Skip to content

Commit

Permalink
feat: Self Host on Coolify with one click (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD authored Nov 7, 2024
1 parent b90c345 commit f0e91e5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
1 change: 1 addition & 0 deletions apps/shelve/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ FROM oven/bun:latest
WORKDIR /app

COPY --from=build /app/apps/shelve/.output .output
COPY --from=build /app/apps/shelve/prisma ./prisma

RUN apt-get update && apt-get install -y curl

Expand Down
29 changes: 29 additions & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions docker-compose.community.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# documentation: https://shelve.cloud/docs
# slogan: Shelve, is a project management tool for developers, etc... to make project creation and management easier.
# tags: environment variables, projects management
# logo: https://raw.githubusercontent.com/hugorcd/shelve/main/assets/logo.svg
# port: 3000

services:
shelve_app:
image: ghcr.io/hugorcd/shelve:latest
container_name: shelve_app
build:
context: .
dockerfile: ./apps/shelve/Dockerfile
restart: always
env_file:
- ./apps/shelve/.env
environment:
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:postgres@shelve_db:5432/postgres}
- NUXT_PRIVATE_REDIS_URL=${NUXT_PRIVATE_REDIS_URL:-redis://shelve_redis:6379}
Expand All @@ -16,11 +18,10 @@ services:
- NUXT_OAUTH_GITHUB_CLIENT_SECRET=${NUXT_OAUTH_GITHUB_CLIENT_SECRET}
- NUXT_PUBLIC_APP_URL=${NUXT_PUBLIC_APP_URL:-http://localhost:3000}
- NUXT_PRIVATE_RESEND_API_KEY=${NUXT_PRIVATE_RESEND_API_KEY}
ports:
- "3000:3000"
depends_on:
- shelve_db
- shelve_redis
command: bunx prisma migrate deploy --schema ./prisma/schema.prisma --force-reset
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/api/hello" ]
interval: 30s
Expand Down

0 comments on commit f0e91e5

Please sign in to comment.