zenstack/.devcontainer/docker-compose.yml
sanny-io 07ab028b9d
Add support for dev containers. (#2248)
Co-authored-by: = <=>
2025-10-13 09:00:41 -07:00

37 lines
734 B
YAML

name: zenstack
volumes:
postgres-data:
networks:
workspace:
external: false
services:
workspace:
container_name: zenstack-workspace
image: mcr.microsoft.com/devcontainers/javascript-node:20
restart: always
volumes:
- ..:/workspace:cached
env_file: ./.env
command: sleep infinity
networks:
- workspace
postgres:
container_name: zenstack-postgres
image: postgres
restart: always
volumes:
- postgres-data:/var/lib/postgresql/
env_file: ./.env
networks:
- workspace
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5