mirror of
https://github.com/Dokploy/templates.git
synced 2026-11-11 13:38:07 -06:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f84a52855 |
@@ -1,65 +1,24 @@
|
|||||||
services:
|
services:
|
||||||
gitlab:
|
gitlab:
|
||||||
image: gitlab/gitlab-ce:latest
|
image: gitlab/gitlab-ce:19.1.2-ce.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
hostname: gitlab.example.com
|
shm_size: "256m"
|
||||||
environment:
|
environment:
|
||||||
GITLAB_OMNIBUS_CONFIG: |
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
external_url 'http://${GITLAB_HOST}'
|
external_url 'http://${GITLAB_HOST}'
|
||||||
gitlab_rails['gitlab_ssh_host'] = '${GITLAB_HOST}'
|
|
||||||
gitlab_rails['gitlab_shell_ssh_port'] = 2224
|
|
||||||
gitlab_rails['db_adapter'] = 'postgresql'
|
|
||||||
gitlab_rails['db_host'] = 'postgresql'
|
|
||||||
gitlab_rails['db_port'] = '5432'
|
|
||||||
gitlab_rails['db_database'] = '${POSTGRES_DB}'
|
|
||||||
gitlab_rails['db_username'] = '${POSTGRES_USER}'
|
|
||||||
gitlab_rails['db_password'] = '${POSTGRES_PASSWORD}'
|
|
||||||
# Redis config for external TCP connection
|
|
||||||
gitlab_rails['redis_url'] = 'redis://redis:6379/0'
|
|
||||||
gitlab_rails['redis_host'] = 'redis'
|
|
||||||
gitlab_rails['redis_port'] = 6379
|
|
||||||
gitlab_rails['redis_socket'] = nil
|
|
||||||
gitlab_rails['gitlab_email_enabled'] = false
|
|
||||||
gitlab_rails['gitlab_default_can_create_group'] = true
|
|
||||||
gitlab_rails['gitlab_username_changing_enabled'] = false
|
|
||||||
unicorn['worker_processes'] = 2
|
|
||||||
unicorn['worker_timeout'] = 60
|
|
||||||
postgresql['enable'] = false
|
|
||||||
redis['enable'] = false
|
|
||||||
nginx['enable'] = true
|
|
||||||
nginx['listen_port'] = 80
|
nginx['listen_port'] = 80
|
||||||
nginx['listen_https'] = false
|
nginx['listen_https'] = false
|
||||||
|
gitlab_rails['initial_root_password'] = '${GITLAB_ROOT_PASSWORD}'
|
||||||
|
gitlab_rails['gitlab_email_enabled'] = false
|
||||||
|
puma['worker_processes'] = 0
|
||||||
|
sidekiq['concurrency'] = 10
|
||||||
prometheus_monitoring['enable'] = false
|
prometheus_monitoring['enable'] = false
|
||||||
ports:
|
|
||||||
- "80"
|
|
||||||
- "2224"
|
|
||||||
volumes:
|
volumes:
|
||||||
- gitlab_config:/etc/gitlab
|
- gitlab_config:/etc/gitlab
|
||||||
- gitlab_logs:/var/log/gitlab
|
- gitlab_logs:/var/log/gitlab
|
||||||
- gitlab_data:/var/opt/gitlab
|
- gitlab_data:/var/opt/gitlab
|
||||||
depends_on:
|
|
||||||
- postgresql
|
|
||||||
- redis
|
|
||||||
|
|
||||||
postgresql:
|
|
||||||
image: postgres:16-alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: ${POSTGRES_DB}
|
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
||||||
volumes:
|
|
||||||
- postgresql_data:/var/lib/postgresql/data
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:7-alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- redis_data:/data
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
gitlab_config:
|
gitlab_config:
|
||||||
gitlab_logs:
|
gitlab_logs:
|
||||||
gitlab_data:
|
gitlab_data:
|
||||||
postgresql_data:
|
|
||||||
redis_data:
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "gitlab-ce",
|
"id": "gitlab-ce",
|
||||||
"name": "GitLab CE",
|
"name": "GitLab CE",
|
||||||
"version": "latest",
|
"version": "19.1.2",
|
||||||
"description": "GitLab Community Edition is a free and open source platform for managing Git repositories, CI/CD pipelines, and project management.",
|
"description": "GitLab Community Edition is a free and open source platform for managing Git repositories, CI/CD pipelines, and project management.",
|
||||||
"logo": "gitlab-ce.svg",
|
"logo": "gitlab-ce.svg",
|
||||||
"links": {
|
"links": {
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
[variables]
|
[variables]
|
||||||
main_domain = "${domain}"
|
main_domain = "${domain}"
|
||||||
postgres_db = "gitlab"
|
gitlab_root_password = "${password:32}"
|
||||||
postgres_user = "gitlab"
|
|
||||||
postgres_password = "${password:32}"
|
|
||||||
|
|
||||||
[config]
|
[config]
|
||||||
env = [
|
env = [
|
||||||
"GITLAB_HOST=${main_domain}",
|
"GITLAB_HOST=${main_domain}",
|
||||||
"POSTGRES_DB=${postgres_db}",
|
"GITLAB_ROOT_PASSWORD=${gitlab_root_password}",
|
||||||
"POSTGRES_USER=${postgres_user}",
|
|
||||||
"POSTGRES_PASSWORD=${postgres_password}",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[config.domains]]
|
[[config.domains]]
|
||||||
|
|||||||
@@ -1,35 +1,39 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
kener:
|
kener:
|
||||||
image: rajnandan1/kener:latest
|
image: rajnandan1/kener:latest
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
- KENER_SECRET_KEY=${KENER_SECRET_KEY} # 🔐 API key / secret
|
- KENER_SECRET_KEY=${KENER_SECRET_KEY} # 🔐 API key / secret
|
||||||
- ORIGIN=${ORIGIN}
|
|
||||||
- REDIS_URL=${REDIS_URL}
|
|
||||||
- DATABASE_URL=${DATABASE_URL}
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
- KENER_BASE_PATH=${KENER_BASE_PATH}
|
- KENER_BASE_PATH=${KENER_BASE_PATH}
|
||||||
|
- ORIGIN=${ORIGIN}
|
||||||
- RESEND_API_KEY=${RESEND_API_KEY} # 🔐 API key
|
- RESEND_API_KEY=${RESEND_API_KEY} # 🔐 API key
|
||||||
- RESEND_SENDER_EMAIL=${RESEND_SENDER_EMAIL}
|
- RESEND_SENDER_EMAIL=${RESEND_SENDER_EMAIL}
|
||||||
ports:
|
ports:
|
||||||
- 3000
|
- 3000
|
||||||
volumes:
|
volumes:
|
||||||
- kener_db:/app/database
|
- kener_db:/app/database
|
||||||
depends_on:
|
- ../files/uploads:/app/uploads
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
redis:
|
postgres:
|
||||||
image: redis:7-alpine
|
image: postgres:alpine
|
||||||
volumes:
|
environment:
|
||||||
- kener_redis:/data
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
healthcheck:
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # 🔐 DB password
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
interval: 10s
|
restart: unless-stopped
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
mysql:
|
||||||
|
image: mariadb:11
|
||||||
|
environment:
|
||||||
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD} # 🔐 DB password
|
||||||
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
|
- MYSQL_RANDOM_ROOT_PASSWORD=true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
kener_db: {}
|
kener_db: {}
|
||||||
kener_redis: {}
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
[variables]
|
[variables]
|
||||||
main_domain = "${domain}"
|
main_domain = "${domain}"
|
||||||
KENER_SECRET_KEY = "${password:64}"
|
KENER_SECRET_KEY = "${password:64}"
|
||||||
|
POSTGRES_PASSWORD = "${password:32}"
|
||||||
|
MYSQL_PASSWORD = "${password:32}"
|
||||||
|
|
||||||
[config]
|
[config]
|
||||||
[[config.domains]]
|
[[config.domains]]
|
||||||
@@ -11,9 +13,25 @@ host = "${main_domain}"
|
|||||||
[config.env]
|
[config.env]
|
||||||
TZ = "Etc/UTC"
|
TZ = "Etc/UTC"
|
||||||
KENER_SECRET_KEY = "${KENER_SECRET_KEY}" # 🔐 API key / secret
|
KENER_SECRET_KEY = "${KENER_SECRET_KEY}" # 🔐 API key / secret
|
||||||
ORIGIN = "https://${main_domain}"
|
|
||||||
REDIS_URL = "redis://redis:6379"
|
|
||||||
DATABASE_URL = "sqlite://./database/kener.sqlite.db"
|
DATABASE_URL = "sqlite://./database/kener.sqlite.db"
|
||||||
KENER_BASE_PATH = ""
|
KENER_BASE_PATH = ""
|
||||||
|
ORIGIN = "http://localhost:3000"
|
||||||
RESEND_API_KEY = ""
|
RESEND_API_KEY = ""
|
||||||
RESEND_SENDER_EMAIL = "Accounts <accounts@resend.dev>"
|
RESEND_SENDER_EMAIL = "Accounts <accounts@resend.dev>"
|
||||||
|
POSTGRES_USER = "user"
|
||||||
|
POSTGRES_DB = "kener_db"
|
||||||
|
MYSQL_USER = "user"
|
||||||
|
MYSQL_DATABASE = "kener_db"
|
||||||
|
MYSQL_RANDOM_ROOT_PASSWORD = "true"
|
||||||
|
MYSQL_PASSWORD = "${MYSQL_PASSWORD}" # 🔐 DB password
|
||||||
|
POSTGRES_PASSWORD = "${POSTGRES_PASSWORD}" # 🔐 DB password
|
||||||
|
|
||||||
|
[[config.mounts]]
|
||||||
|
type = "volume"
|
||||||
|
source = "kener_db"
|
||||||
|
target = "/app/database"
|
||||||
|
|
||||||
|
[[config.mounts]]
|
||||||
|
type = "bind"
|
||||||
|
source = "../files/uploads"
|
||||||
|
target = "/app/uploads"
|
||||||
|
|||||||
Reference in New Issue
Block a user