-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevproc.yaml
More file actions
84 lines (72 loc) · 2.25 KB
/
devproc.yaml
File metadata and controls
84 lines (72 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# DevProc Example Configuration
# This is a sample config demonstrating DevProc's capabilities
name: example-project
# Global environment variables (applied to all services)
env:
NODE_ENV: development
# Docker Compose file path (optional, defaults to docker-compose.yml)
# compose: docker-compose.yml
# Service groups - organize related services together
groups:
core:
- echo
- counter
monitoring:
- logger
- metrics
# To use Docker Compose integration
infrastructure:
- postgres
- redis
# Example services for a typical full-stack application
services:
# Simple echo service for testing
echo:
cmd: "bash -c 'while true; do echo Hello from echo service; sleep 2; done'"
color: cyan
# Counter service
counter:
cmd: "bash -c 'i=0; while true; do echo Count: $i; i=$((i+1)); sleep 1; done'"
color: green
depends_on:
- echo
# Timestamp logger
logger:
cmd: "bash -c 'while true; do date; sleep 3; done'"
color: yellow
# Metrics service
metrics:
cmd: 'bash -c ''while true; do echo "Memory: $((RANDOM % 100))% CPU: $((RANDOM % 100))%"; sleep 5; done'''
color: magenta
# =====================================================
# Docker Compose Integration Examples
# Uncomment the services below to use with docker-compose.yml
# =====================================================
# PostgreSQL via Docker Compose
# The 'compose: true' flag tells DevProc to manage this service
# using 'docker compose up/stop' commands
postgres:
compose: true
# Healthcheck runs inside the container using docker compose exec
healthcheck:
cmd: docker compose exec -T postgres pg_isready -U devproc -d devproc_dev
interval: 2s
retries: 30
# Redis via Docker Compose
redis:
compose: true
# Healthcheck runs inside the container using docker compose exec
healthcheck:
cmd: docker compose exec -T redis redis-cli ping
interval: 2s
retries: 15
# Example API service that depends on compose services
# api:
# cmd: npm run dev
# depends_on:
# postgres: healthy
# redis: healthy
# env:
# DATABASE_URL: postgres://devproc:devproc@localhost:5432/devproc_dev
# REDIS_URL: redis://localhost:6379
# color: green