-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
23 lines (23 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
23 lines (23 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3'
services:
log-capture:
image: db_automator
build: .
env_file:
- .env # Optional; defaults will be used if it does not exist
ports:
- "8586:8586"
group_add:
- "998" # host docker group GID — grants access to /var/run/docker.sock
volumes:
# Mount Docker socket so this service can read logs from sibling containers
- /var/run/docker.sock:/var/run/docker.sock
# Persist captured logs to host
- ./logs:/app/logs
# Persist SQLite backups to host
- ./backups:/app/backups
# Persist anomaly alerts to host
- ./alerts:/app/alerts
# Read Spring's SQLite database (read-only)
- /home/ubuntu/open/spring/volumes:/spring-volumes:ro
restart: unless-stopped