ci(compose): update docker compose deployment examples

This commit is contained in:
Amruth Pillai
2023-11-05 13:38:56 +01:00
parent eef91cf905
commit d113f84c7e
4 changed files with 8 additions and 10 deletions

View File

@ -1,10 +1,10 @@
name: Publish Docker Image name: Publish Docker Image
on: on:
workflow_dispatch:
push: push:
branches: branches:
- v4 - v4
workflow_dispatch:
env: env:
IMAGE: amruthpillai/reactive-resume IMAGE: amruthpillai/reactive-resume
@ -21,7 +21,7 @@ jobs:
matrix: matrix:
platform: platform:
- linux/amd64 - linux/amd64
- linux/arm64 # - linux/arm64 # Skipping linux/arm64 for now as it is extremely slow to build on GitHub Actions
steps: steps:
- name: Checkout Repository - name: Checkout Repository

View File

@ -40,7 +40,7 @@ export const configSchema = z.object({
REDIS_URL: z.string().url().startsWith("redis://").optional(), REDIS_URL: z.string().url().startsWith("redis://").optional(),
// Sentry // Sentry
SENTRY_DSN: z.string().url().optional(), SENTRY_DSN: z.string().url().startsWith("https://").optional(),
// GitHub (OAuth) // GitHub (OAuth)
GITHUB_CLIENT_ID: z.string().optional(), GITHUB_CLIENT_ID: z.string().optional(),

View File

@ -75,7 +75,7 @@ services:
ACCESS_TOKEN_SECRET: access_token_secret ACCESS_TOKEN_SECRET: access_token_secret
REFRESH_TOKEN_SECRET: refresh_token_secret REFRESH_TOKEN_SECRET: refresh_token_secret
# -- Emails -- # -- Emails --
SMTP_URL: smtp://user:pass@smtp:587 # Optional # SMTP_URL: smtp://user:pass@smtp:587 # Optional
# -- Storage (Minio) -- # -- Storage (Minio) --
STORAGE_ENDPOINT: minio STORAGE_ENDPOINT: minio
STORAGE_PORT: 9000 STORAGE_PORT: 9000
@ -86,7 +86,7 @@ services:
# -- Cache (Redis) -- # -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379 REDIS_URL: redis://default:password@redis:6379
# -- Sentry -- # -- Sentry --
SENTRY_DSN: https://id.sentry.io # Optional # SENTRY_DSN: https://id.sentry.io # Optional
# -- GitHub -- # -- GitHub --
GITHUB_CLIENT_ID: github_client_id GITHUB_CLIENT_ID: github_client_id
GITHUB_CLIENT_SECRET: github_client_secret GITHUB_CLIENT_SECRET: github_client_secret

View File

@ -53,9 +53,7 @@ services:
command: redis-server --requirepass password command: redis-server --requirepass password
app: app:
build: image: amruthpillai/reactive-resume
context: ../..
dockerfile: Dockerfile
restart: unless-stopped restart: unless-stopped
ports: ports:
- 3000:3000 - 3000:3000
@ -80,7 +78,7 @@ services:
ACCESS_TOKEN_SECRET: access_token_secret ACCESS_TOKEN_SECRET: access_token_secret
REFRESH_TOKEN_SECRET: refresh_token_secret REFRESH_TOKEN_SECRET: refresh_token_secret
# -- Emails -- # -- Emails --
SMTP_URL: smtp://user:pass@smtp:587 # Optional # SMTP_URL: smtp://user:pass@smtp:587 # Optional
# -- Storage (Minio) -- # -- Storage (Minio) --
STORAGE_ENDPOINT: minio STORAGE_ENDPOINT: minio
STORAGE_PORT: 9000 STORAGE_PORT: 9000
@ -91,7 +89,7 @@ services:
# -- Cache (Redis) -- # -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379 REDIS_URL: redis://default:password@redis:6379
# -- Sentry -- # -- Sentry --
SENTRY_DSN: https://id.sentry.io # Optional # SENTRY_DSN: https://id.sentry.io # Optional
# -- GitHub -- # -- GitHub --
GITHUB_CLIENT_ID: github_client_id GITHUB_CLIENT_ID: github_client_id
GITHUB_CLIENT_SECRET: github_client_secret GITHUB_CLIENT_SECRET: github_client_secret