services: postgres: image: postgres:15-alpine pull_policy: always ports: - "5432:5432" env_file: - .env volumes: - db:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 restart: always pgadmin: image: dpage/pgadmin4 pull_policy: always environment: PGADMIN_DEFAULT_EMAIL: admin@example.com PGADMIN_DEFAULT_PASSWORD: ${POSTGRES_PASSWORD} ports: - "5050:80" depends_on: - postgres restart: unless-stopped tanstack-start-app: build: context: . dockerfile: Dockerfile pull_policy: always env_file: - .env environment: - POSTGRES_HOST=postgres ports: - "3000:3000" depends_on: postgres: condition: service_healthy restart: unless-stopped develop: watch: - action: sync path: . target: /app ignore: - node_modules/ - .vinxi/ - .git/ - action: rebuild path: package.json volumes: db: