Files
data-collection-terminal/docker-compose.yml
2024-10-09 16:29:58 +08:00

45 lines
1.1 KiB
YAML

services:
etcd:
build: docker/etcd
ports:
- 2379:2379
- 2380:2370
network_mode: host
volumes:
- ./data/etcd/data:/var/lib/etcd
- ./data/etcd/etc:/etc/etcd
prometheus:
build: docker/prometheus
volumes:
- ./data/prometheus/etc/prometheus:/etc/prometheus
- ./data/prometheus/etc/supervisord:/etc/supervisord
ports:
- 9090:9090
depends_on:
- node-exporter
network_mode: host
panel:
build: management-panel
volumes:
- ./data/panel/storage/app:/app/storage/app
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
entrypoint: /app/entrypoint.sh
command: php artisan octane:start --server=swoole --workers=4 --host=0.0.0.0 --port=8000
ports:
- 8000:8000
depends_on:
- etcd
- prometheus
restart: always
network_mode: host
privileged: true
node-exporter:
build: docker/node_exporter
# privileged: true
network_mode: host
pid: host
volumes:
- '/:/host:ro'
opcua-exporter:
build: opcua-exporter
network_mode: host