-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
53 lines (51 loc) · 1.34 KB
/
docker-compose.dev.yaml
File metadata and controls
53 lines (51 loc) · 1.34 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
services:
sentinel:
build:
context: .
dockerfile: Dockerfile
target: builder
container_name: sentinel-dev
command: sh -c "pnpm run start:dev"
env_file:
- .env
volumes:
- .:/app
- /app/node_modules
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- NODE_ENV=development
- PORT=3000
- DOCKER_CONTAINER_NAME=${DOCKER_CONTAINER_NAME:-test-app}
- DOCKER_SOCKET_PATH=/var/run/docker.sock
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
- TELEGRAM_TOPIC_ID=${TELEGRAM_TOPIC_ID:-}
- LOG_LEVELS=${LOG_LEVELS:-error,warn,debug}
- BATCH_INTERVAL_MS=${BATCH_INTERVAL_MS:-3000}
- MAX_BATCH_SIZE=${MAX_BATCH_SIZE:-5}
ports:
- "3000:3000"
- "9229:9229"
networks:
- sentinel-network
test-app:
image: alpine
container_name: test-app
command: >
sh -c "
while true; do
echo '[INFO] Application running normally';
sleep 2;
echo '[DEBUG] Processing request...';
sleep 1;
echo '[WARN] High memory usage detected';
sleep 3;
echo '[ERROR] Database connection failed' >&2;
sleep 5;
done
"
networks:
- sentinel-network
networks:
sentinel-network:
driver: bridge