Skip to content

Instantly share code, notes, and snippets.

View nukdokplex's full-sized avatar

NukDokPlex nukdokplex

View GitHub Profile
@megahirt
megahirt / Docker with XDebug.md
Last active June 2, 2024 00:28
Debugging PHP with XDebug v3 inside Docker using VSCode

Debugging PHP with XDebug v3 inside Docker using VSCode

Assumptions / Prerequisites

  • XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
  • Running Docker v20.10+
  • VSCode with PHP Debug Extension (Felix Becker)
  • Using Docker Compose for orchestration

Objective

@kizzx2
kizzx2 / docker-compose.yml
Last active June 4, 2024 19:31
Restart a docker container periodically with docker-compose
version: '3'
services:
app:
image: nginx:alpine
ports: ["80:80"]
restart: unless-stopped
restarter:
image: docker:cli
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]