-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat(templates): add sparkyfitness compose template and logo #6925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
Add Docker Compose template for SparkyFitness, a comprehensive fitness tracking application, including the SVG logo and configuration for frontend, server, and database services.
Hi @ariqpradipa! 👋 It appears to us that you are either adding a new service or making changes to an existing one. Coolify Docs Repository: https://github.com/coollabsio/coolify-docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The app works fine, though the Compose file needs small changes for better maintainability.
volumes: | ||
- 'sparkyfitness-db-postgresql:/var/lib/postgresql/data' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add healthcheck for database
volumes: | |
- 'sparkyfitness-db-postgresql:/var/lib/postgresql/data' | |
healthcheck: | |
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] | |
interval: 5s | |
timeout: 20s | |
retries: 10 | |
volumes: | |
- 'sparkyfitness-db-postgresql:/var/lib/postgresql/data' |
volumes: | ||
sparkyfitness-server-backup: | ||
sparkyfitness-server-uploads: | ||
sparkyfitness-db-postgresql: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coolify adds this automatically
volumes: | |
sparkyfitness-server-backup: | |
sparkyfitness-server-uploads: | |
sparkyfitness-db-postgresql: |
services: | ||
sparkyfitness-frontend: | ||
image: 'codewithcj/sparkyfitness:latest' | ||
restart: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coolify adds this automatically
restart: always |
|
||
sparkyfitness-server: | ||
image: 'codewithcj/sparkyfitness_server:latest' | ||
restart: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coolify adds this automatically
restart: always |
|
||
sparkyfitness-db: | ||
image: 'postgres:15-alpine' | ||
restart: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coolify adds this automatically
restart: always |
SPARKY_FITNESS_LOG_LEVEL: '${SPARKY_FITNESS_LOG_LEVEL:-info}' | ||
SPARKY_FITNESS_DB_USER: '${SERVICE_USER_POSTGRES}' | ||
SPARKY_FITNESS_DB_HOST: sparkyfitness-db | ||
SPARKY_FITNESS_DB_NAME: '${SPARKY_FITNESS_DB_NAME:-sparkyfitness}' | ||
SPARKY_FITNESS_DB_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}' | ||
SPARKY_FITNESS_DB_PORT: '${SPARKY_FITNESS_DB_PORT:-5432}' | ||
SPARKY_FITNESS_API_ENCRYPTION_KEY: '${SERVICE_PASSWORD_64_SERVERAPIENCRYPTIONKEY}' | ||
JWT_SECRET: '${SERVICE_PASSWORD_64_SERVERJWTSECRET}' | ||
SPARKY_FITNESS_FRONTEND_URL: '${SERVICE_URL_SPARKYFITNESS_80}' | ||
SPARKY_FITNESS_DISABLE_SIGNUP: '${SPARKY_FITNESS_DISABLE_SIGNUP:-false}' | ||
SPARKY_FITNESS_ADMIN_EMAIL: '${SPARKY_FITNESS_ADMIN_EMAIL:-admin@example.com}' | ||
SPARKY_FITNESS_EMAIL_HOST: '${SPARKY_FITNESS_EMAIL_HOST:-smtp.gmail.com}' | ||
SPARKY_FITNESS_EMAIL_PORT: '${SPARKY_FITNESS_EMAIL_PORT:-587}' | ||
SPARKY_FITNESS_EMAIL_SECURE: '${SPARKY_FITNESS_EMAIL_SECURE:-false}' | ||
SPARKY_FITNESS_EMAIL_USER: '${SPARKY_FITNESS_EMAIL_USER}' | ||
SPARKY_FITNESS_EMAIL_PASS: '${SPARKY_FITNESS_EMAIL_PASS}' | ||
SPARKY_FITNESS_EMAIL_FROM: '${SPARKY_FITNESS_EMAIL_FROM:-"Sparky Fitness <noreply@sparkyfitness.com>"}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properly Format the envs
SPARKY_FITNESS_LOG_LEVEL: '${SPARKY_FITNESS_LOG_LEVEL:-info}' | |
SPARKY_FITNESS_DB_USER: '${SERVICE_USER_POSTGRES}' | |
SPARKY_FITNESS_DB_HOST: sparkyfitness-db | |
SPARKY_FITNESS_DB_NAME: '${SPARKY_FITNESS_DB_NAME:-sparkyfitness}' | |
SPARKY_FITNESS_DB_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}' | |
SPARKY_FITNESS_DB_PORT: '${SPARKY_FITNESS_DB_PORT:-5432}' | |
SPARKY_FITNESS_API_ENCRYPTION_KEY: '${SERVICE_PASSWORD_64_SERVERAPIENCRYPTIONKEY}' | |
JWT_SECRET: '${SERVICE_PASSWORD_64_SERVERJWTSECRET}' | |
SPARKY_FITNESS_FRONTEND_URL: '${SERVICE_URL_SPARKYFITNESS_80}' | |
SPARKY_FITNESS_DISABLE_SIGNUP: '${SPARKY_FITNESS_DISABLE_SIGNUP:-false}' | |
SPARKY_FITNESS_ADMIN_EMAIL: '${SPARKY_FITNESS_ADMIN_EMAIL:-admin@example.com}' | |
SPARKY_FITNESS_EMAIL_HOST: '${SPARKY_FITNESS_EMAIL_HOST:-smtp.gmail.com}' | |
SPARKY_FITNESS_EMAIL_PORT: '${SPARKY_FITNESS_EMAIL_PORT:-587}' | |
SPARKY_FITNESS_EMAIL_SECURE: '${SPARKY_FITNESS_EMAIL_SECURE:-false}' | |
SPARKY_FITNESS_EMAIL_USER: '${SPARKY_FITNESS_EMAIL_USER}' | |
SPARKY_FITNESS_EMAIL_PASS: '${SPARKY_FITNESS_EMAIL_PASS}' | |
SPARKY_FITNESS_EMAIL_FROM: '${SPARKY_FITNESS_EMAIL_FROM:-"Sparky Fitness <noreply@sparkyfitness.com>"}' | |
- 'SPARKY_FITNESS_LOG_LEVEL=${SPARKY_FITNESS_LOG_LEVEL:-info}' | |
- 'SPARKY_FITNESS_DB_USER=${SERVICE_USER_POSTGRES}' | |
- SPARKY_FITNESS_DB_HOST=sparkyfitness-db | |
- 'SPARKY_FITNESS_DB_NAME=${SPARKY_FITNESS_DB_NAME:-sparkyfitness}' | |
- 'SPARKY_FITNESS_DB_PASSWORD=${SERVICE_PASSWORD_POSTGRES}' | |
- 'SPARKY_FITNESS_DB_PORT=${SPARKY_FITNESS_DB_PORT:-5432}' | |
- 'SPARKY_FITNESS_API_ENCRYPTION_KEY=${SERVICE_PASSWORD_64_SERVERAPIENCRYPTIONKEY}' | |
- 'JWT_SECRET=${SERVICE_PASSWORD_64_SERVERJWTSECRET}' | |
- 'SPARKY_FITNESS_FRONTEND_URL=${SERVICE_URL_SPARKYFITNESS_80}' | |
- 'SPARKY_FITNESS_DISABLE_SIGNUP=${SPARKY_FITNESS_DISABLE_SIGNUP:-false}' | |
- 'SPARKY_FITNESS_ADMIN_EMAIL=${SPARKY_FITNESS_ADMIN_EMAIL:-admin@example.com}' | |
- 'SPARKY_FITNESS_EMAIL_HOST=${SPARKY_FITNESS_EMAIL_HOST:-smtp.gmail.com}' | |
- 'SPARKY_FITNESS_EMAIL_PORT=${SPARKY_FITNESS_EMAIL_PORT:-587}' | |
- 'SPARKY_FITNESS_EMAIL_SECURE=${SPARKY_FITNESS_EMAIL_SECURE:-false}' | |
- 'SPARKY_FITNESS_EMAIL_USER=${SPARKY_FITNESS_EMAIL_USER}' | |
- 'SPARKY_FITNESS_EMAIL_PASS=${SPARKY_FITNESS_EMAIL_PASS}' | |
- 'SPARKY_FITNESS_EMAIL_FROM=${SPARKY_FITNESS_EMAIL_FROM:-"Sparky Fitness <noreply@sparkyfitness.com>"}' |
POSTGRES_DB: '${SPARKY_FITNESS_DB_NAME:-sparkyfitness}' | ||
POSTGRES_USER: '${SERVICE_USER_POSTGRES}' | ||
POSTGRES_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properly Format the envs and add db port env
POSTGRES_DB: '${SPARKY_FITNESS_DB_NAME:-sparkyfitness}' | |
POSTGRES_USER: '${SERVICE_USER_POSTGRES}' | |
POSTGRES_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}' | |
- 'POSTGRES_DB=${SPARKY_FITNESS_DB_NAME:-sparkyfitness}' | |
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}' | |
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}' | |
- POSTGRES_PORT=${SPARKY_FITNESS_DB_PORT:-5432} |
|
||
services: | ||
sparkyfitness-frontend: | ||
image: 'codewithcj/sparkyfitness:latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pin to a static version rather than 'latest' to prevent the template from breaking due to upstream changes.
image: 'codewithcj/sparkyfitness:latest' | |
image: 'codewithcj/sparkyfitness:v0.15.7.3' # Released on Oct 18, 2025 |
- sparkyfitness-server | ||
|
||
sparkyfitness-server: | ||
image: 'codewithcj/sparkyfitness_server:latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pin to a static version rather than 'latest' to prevent the template from breaking due to upstream changes.
image: 'codewithcj/sparkyfitness_server:latest' | |
image: 'codewithcj/sparkyfitness_server:v0.15.7.3' # Released on Oct 18, 2025 |
Add Docker Compose template for SparkyFitness, a comprehensive fitness tracking application, including the SVG logo and configuration for frontend, server, and database services.
Changes