-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (115 loc) · 3.24 KB
/
docker-compose.yml
File metadata and controls
121 lines (115 loc) · 3.24 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# AIngle Docker Compose
# https://github.com/ApiliumCode/aingle
services:
# ==========================================================================
# AIngle Node
# ==========================================================================
aingle:
build:
context: .
dockerfile: Dockerfile
target: runtime
image: apiliumcode/aingle:latest
container_name: aingle-node
restart: unless-stopped
ports:
- "8888:8888" # Admin API
- "8889:8889" # App API
- "5353:5353/udp" # mDNS
- "5684:5684/udp" # CoAP
volumes:
- aingle-data:/app/data
- ./config:/app/config:ro
environment:
- RUST_LOG=info
- AINGLE_DATA_DIR=/app/data
- AINGLE_CONFIG_DIR=/app/config
networks:
- aingle-network
healthcheck:
test: ["CMD", "aingle", "--version"]
interval: 30s
timeout: 10s
retries: 3
# ==========================================================================
# AIngle Visualization (DAG Viewer)
# ==========================================================================
aingle-viz:
build:
context: .
dockerfile: Dockerfile
target: runtime
image: apiliumcode/aingle-viz:latest
container_name: aingle-viz
restart: unless-stopped
ports:
- "3000:3000" # Web UI
environment:
- RUST_LOG=info
- AINGLE_ADMIN_URL=ws://aingle:8888
depends_on:
- aingle
networks:
- aingle-network
command: ["aingle-viz", "--port", "3000"]
# ==========================================================================
# AIngle Cortex (API Server)
# ==========================================================================
aingle-cortex:
build:
context: .
dockerfile: Dockerfile
target: runtime
image: apiliumcode/aingle-cortex:latest
container_name: aingle-cortex
restart: unless-stopped
ports:
- "19090:19090" # REST/GraphQL API
environment:
- RUST_LOG=info
- CORTEX_PORT=19090
- AINGLE_ADMIN_URL=ws://aingle:8888
depends_on:
- aingle
networks:
- aingle-network
command: ["aingle-cortex", "--port", "19090"]
# ==========================================================================
# Development Environment
# ==========================================================================
dev:
build:
context: .
dockerfile: Dockerfile
target: development
image: apiliumcode/aingle-dev:latest
container_name: aingle-dev
volumes:
- .:/app
- cargo-cache:/usr/local/cargo/registry
- target-cache:/app/target
environment:
- RUST_LOG=debug
- RUST_BACKTRACE=1
networks:
- aingle-network
stdin_open: true
tty: true
profiles:
- dev
# ==========================================================================
# Networks
# ==========================================================================
networks:
aingle-network:
driver: bridge
# ==========================================================================
# Volumes
# ==========================================================================
volumes:
aingle-data:
driver: local
cargo-cache:
driver: local
target-cache:
driver: local