Skip to content

Commit

Permalink
chore: enable caddy
Browse files Browse the repository at this point in the history
  • Loading branch information
3mcd committed Mar 3, 2025
1 parent e43a356 commit 591ad7f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ jobs:
# PullPreview will use those 2 files when running docker-compose up
compose_files: ./self-host/docker-compose.yml,docker-compose.preview.yml
# The preview URL will target this port
default_port: 3000
default_port: 443
# Use a 512MB RAM instance type instead of the default 2GB
instance_type: small
# Ports to open on the server
ports: 3000
ports: 443
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ services:
MINIO_ROOT_PASSWORD: preview
ASSETS_UPLOAD_KEY: preview
ASSETS_UPLOAD_SECRET_KEY: preview
caddy:
image: caddy:latest
restart: unless-stopped
command: "caddy reverse-proxy --from '${PULLPREVIEW_PUBLIC_DNS}' --to platform:3000"
depends_on:
- platform
- platform-jobs
- minio
env_file:
- path: .env
required: true
ports:
- "80:80"
- "443:443"
volumes:
- ./caddy:/etc/caddy
- caddy-data:/data
- caddy-config:/config
networks:
- app-network
seed:
platform: linux/amd64
depends_on:
Expand Down

0 comments on commit 591ad7f

Please sign in to comment.