/MatchGroup

Primary LanguagePHPMIT LicenseMIT

Matchgroup

Access mails: http://0.0.0.0:49584/

Start docker with xdebug enabled:

XDEBUG_MODE=debug docker compose up -d

Deployment

  1. Compile assets locally
php bin/console asset-map:compile
  1. Push code to git
git commit && push
  1. SSH into Digital Ocean Droplet
 ssh matchgroup 
 or
 ssh root@46.101.144.212 
  1. Pull code from git
cd MatchGroup && git pull
  1. Build and run docker containers (see Depolyment.md for secrets)
SERVER_NAME="matchgroup.tech, caddy:80" \
MAILER_DSN="mailgun+api://YOUR_API_KEY:mailgun.matchgroup.tech@default?region=eu" \
HTTP_PORT=80 \
HTTPS_PORT=443 \
HTTP3_PORT=443 \
APP_ENV=prod \
APP_SECRET=YOUR_SECERT \
POSTGRES_PASSWORD=YOUR_SECRET \
MERCURE_JWT_SECRET=YOUR_SECRET \
CADDY_MERCURE_JWT_SECRET=YOUR_SECRET \
MERCURE_PUBLIC_URL=https://matchgroup.tech/.well-known/mercure \
docker compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d
  1. In local env we need to delete the public/assets folder again to get live updates

Ideas:


Symfony Docker

A Docker-based installer and runtime for the Symfony web framework, with full HTTP/2, HTTP/3 and HTTPS support.

CI

Getting Started

  1. If not already done, install Docker Compose (v2.10+)
  2. Run docker compose build --pull --no-cache to build fresh images
  3. Run docker compose up (the logs will be displayed in the current shell)
  4. Open https://localhost in your favorite web browser and accept the auto-generated TLS certificate
  5. Run docker compose down --remove-orphans to stop the Docker containers.

Features

Enjoy!

Docs

  1. Build options
  2. Using Symfony Docker with an existing project
  3. Support for extra services
  4. Deploying in production
  5. Debugging with Xdebug
  6. TLS Certificates
  7. Using a Makefile
  8. Troubleshooting

License

Symfony Docker is available under the MIT License.

Credits

Created by Kévin Dunglas, co-maintained by Maxime Helias and sponsored by Les-Tilleuls.coop.