Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (72 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (72 loc) · 1.62 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
version: 3.8
services:
magnatrix-core:
image: magnatrix-os:latest
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
volumes:
- magnatrix-data:/data
- magnatrix-logs:/logs
environment:
MAGNATRIX_ENV: production
MAGNATRIX_LOG_LEVEL: info
MAGNATRIX_PORT: 8080
command: python magnatrix.py start --port 8080
restart: unless-stopped
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8080/api/status
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- magnatrix-net
labels:
app: magnatrix-core
tier: core
magnatrix-dashboard:
image: magnatrix-os:latest
ports:
- 8081:8081
environment:
MAGNATRIX_DASHBOARD_PORT: 8081
MAGNATRIX_CORE_HOST: magnatrix-core
command: python -c 'from core.dashboard_production_native import DashboardServer; DashboardServer(port=8081).start()
restart: unless-stopped
depends_on:
- magnatrix-core
networks:
- magnatrix-net
labels:
app: magnatrix-dashboard
tier: frontend
magnatrix-logs:
image: magnatrix-os:latest
volumes:
- magnatrix-logs:/logs
environment:
MAGNATRIX_LOG_AGGREGATOR: true
command: python -c 'import time; time.sleep(999999)'
restart: unless-stopped
depends_on:
- magnatrix-core
networks:
- magnatrix-net
labels:
app: magnatrix-logs
tier: support
volumes:
magnatrix-data:
driver: local
magnatrix-logs:
driver: local
networks:
magnatrix-net:
driver: bridge