Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.93 KB

File metadata and controls

78 lines (52 loc) · 1.93 KB

What is this?

This project includes a Dev Container definition in .devcontainer/.

Table of Contents

What it uses

  • Existing root compose.yaml
  • Existing root Dockerfile_dev
  • A small Compose override: .devcontainer/docker-compose.devcontainer.yml

How to use

  1. Open the repository in VS Code.
  2. Run Dev Containers: Reopen in Container.
  3. The container attaches to the php service with workspace at /app.

UID/GID mapping

The dev container override sets defaults for required Compose variables:

  • HOST_UID defaults to 1000
  • HOST_GID defaults to 1000

If your host user is different, export variables before launching VS Code:

export HOST_UID="$(id -u)"
export HOST_GID="$(id -g)"
code /home/wnd/PhpstormProjects/symfony-flex-backend

Services started by default

  • php
  • mariadb
  • nginx
  • dozzle
  • adminer

Port mappings

Service Host / Forwarded port URL
Nginx (HTTPS) 8000 https://localhost:8000
Nginx (HTTP) 8080 http://localhost:8080
MariaDB 33060 localhost:33060
Dozzle 8100 http://localhost:8100
Adminer 8200 http://localhost:8200

You can still use existing Make targets from inside the container terminal.


Back to previous