assessment-model/.devcontainer/docker-compose.yml
2026-06-08 14:08:48 +00:00

49 lines
1.5 KiB
YAML

services:
frontend:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
# Match host UID/GID so files written in the container aren't root-owned.
args:
USER_UID: ${UID:-1000}
USER_GID: ${GID:-1000}
command: sleep infinity
ports:
# Host port left unspecified so Docker assigns a free one — lets multiple
# worktrees of this repo run at once without colliding. VS Code's
# forwardPorts (below) forwards container :3000 to your machine.
- "3000"
volumes:
- ..:/workspaces/assessment-model
- ~/.gitconfig:/home/vscode/.gitconfig
# GitHub CLI auth from host (created by `gh auth login`). Used by the
# postCreate skill installer to clone private Hestia-Homes repos.
- ~/.config/gh:/home/vscode/.config/gh:ro
environment:
# Host SSH agent — for `git push` etc. inside the container.
- SSH_AUTH_SOCK=${SSH_AUTH_SOCK:-}
# Fallback HTTPS auth if ~/.config/gh isn't present on the host.
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
networks:
- frontend-net
- shared-dev
pgadmin:
image: dpage/pgadmin4
hostname: pgadmin
ports:
# Dynamic host port (see frontend above). VS Code auto-detects and
# forwards the listening container port when the container comes up.
- "80"
env_file:
- ../.db-env
restart: unless-stopped
networks:
- frontend-net
networks:
frontend-net:
driver: bridge
shared-dev:
external: true
name: shared-dev