From 3a5d877f41aeb5bcdab74e212bd14f643bd9a04c Mon Sep 17 00:00:00 2001 From: Yunus Date: Tue, 28 Jan 2025 11:48:26 +0700 Subject: [PATCH] Add docker-compose to CDN --- public/docker/docker-compose-base.env | 14 ++++++++++++ public/docker/docker-compose.env | 14 ++++++++++++ public/docker/docker-compose.yml | 33 +++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 public/docker/docker-compose-base.env create mode 100644 public/docker/docker-compose.env create mode 100644 public/docker/docker-compose.yml diff --git a/public/docker/docker-compose-base.env b/public/docker/docker-compose-base.env new file mode 100644 index 0000000..070d3b0 --- /dev/null +++ b/public/docker/docker-compose-base.env @@ -0,0 +1,14 @@ +NUXT_APP_ENABLE_DRIZZLE_LOGGING=false +NUXT_PUBLIC_GOOGLE_CLIENT_ID=sample-fc72420db46b4bfaaba8ea97a74535a7.apps.googleusercontent.com +NUXT_APP_MIGRATION_ENABLE=true +NUXT_BUNDLEAAB_KEYSTORE_URL=/.known-jks/distapp_test.jks +NUXT_BUNDLEAAB_KEYSTORE_ALIAS=DistApp +NUXT_BUNDLEAAB_KEYSTORE_PASS=tmEpYcMc9JiKpFZvXvv3VPjfTmQCTKBUEQA8Ce6gA5DVYXZnEHyjPnMWNo8EVG +NUXT_APP_LIMIT_ORG=1024 +NUXT_APP_LIMIT_APPS=1024 +NUXT_APP_LIMIT_APPS_GROUP=1024 +NUXT_APP_LIMIT_INVITE_ORGS=1024 +NUXT_APP_LIMIT_API_KEYS=1024 +NUXT_APP_LIMIT_APPS_TESTER_GROUPS=1024 +NUXT_APP_LIMIT_ARTIFACT=4096 +NUXT_APP_DISABLE_BILLING=true diff --git a/public/docker/docker-compose.env b/public/docker/docker-compose.env new file mode 100644 index 0000000..e18e825 --- /dev/null +++ b/public/docker/docker-compose.env @@ -0,0 +1,14 @@ +# user=password:user=password; +NUXT_LOCAL_AUTHS=admin=wEHvOUtcyKOAyiV8L4vlElMfZl3cwxOoMR7uGKOSAuQM +NUXT_PUBLIC_LOCAL_AUTH_ENABLED=true +NUXT_APP_ENABLE_DRIZZLE_LOGGING=false +NUXT_DB_URL=http://db:8080 +NUXT_DB_AUTH_TOKEN=basic:c3FsZDpSMm0zRW9Xb2g4aE5tYTJucjkwZkdpTUdHZm5JRGM0OEpIcEVWVldZclMwd013Cg== +SQLD_HTTP_AUTH=${NUXT_DB_AUTH_TOKEN} +NUXT_S3_ENDPOINT=http://192.168.1.81:9000 +NUXT_S3_ACCESS_KEY_ID=jjGTj5w7YHQx4WC9m8mGffKXS3aWraIfUv0idRODYNM53M +NUXT_S3_SECRET_ACCESS_KEY=u9W8i3iu4sciIqzJWeAlut118l2bLFzR8tZpoqtG8MQ1rY +MINIO_ROOT_USER=${NUXT_S3_ACCESS_KEY_ID} +MINIO_ROOT_PASSWORD=${NUXT_S3_SECRET_ACCESS_KEY} +NUXT_JWT_KEY=xvIMvMNDpzMB5tPgY9TCKXcFljUl6BDF77t8mUR4le4iM +NUXT_APP_API_AUTH_KEY=lV09V0vUjb3hRRa3ysdldb2eHaRKOmqF5DKV8ktqyRJk diff --git a/public/docker/docker-compose.yml b/public/docker/docker-compose.yml new file mode 100644 index 0000000..f8f098b --- /dev/null +++ b/public/docker/docker-compose.yml @@ -0,0 +1,33 @@ +services: + distapp: + image: 5yunus2efendi/distapp:latest + platform: linux/amd64 + ports: + - "3000:3000" + env_file: + - docker-compose-base.env + - docker-compose.env + depends_on: + - minio + - db + minio: + image: bitnami/minio:2024.12.18 + ports: + - '9000:9000' + - '9001:9001' + env_file: + - docker-compose.env + environment: + - MINIO_DEFAULT_BUCKETS=distapp + volumes: + - 'minio_data:/bitnami/minio/data' + db: + image: ghcr.io/tursodatabase/libsql-server:v0.24.31 + platform: linux/amd64 + env_file: + - docker-compose.env + volumes: + - db:/var/lib/sqld +volumes: + db: + minio_data: