feat: publishing infernet-container-starter v0.1.0
This commit is contained in:
57
deploy/docker-compose.yaml
Normal file
57
deploy/docker-compose.yaml
Normal file
@ -0,0 +1,57 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
node:
|
||||
image: ritualnetwork/infernet-node:latest
|
||||
ports:
|
||||
- "0.0.0.0:4000:4000"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./config.json
|
||||
target: /app/config.json
|
||||
- node-logs:/logs
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
networks:
|
||||
- network
|
||||
depends_on:
|
||||
- redis
|
||||
restart:
|
||||
on-failure
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
stop_grace_period: 1m
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
ports:
|
||||
- "6379:6379"
|
||||
networks:
|
||||
- network
|
||||
volumes:
|
||||
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||
- redis-data:/data
|
||||
restart:
|
||||
on-failure
|
||||
|
||||
fluentbit:
|
||||
image: fluent/fluent-bit:latest
|
||||
ports:
|
||||
- "24224:24224"
|
||||
|
||||
environment:
|
||||
- FLUENTBIT_CONFIG_PATH=/fluent-bit/etc/fluent-bit.conf
|
||||
volumes:
|
||||
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
|
||||
- /var/log:/var/log:ro
|
||||
networks:
|
||||
- network
|
||||
restart:
|
||||
on-failure
|
||||
|
||||
networks:
|
||||
network:
|
||||
|
||||
|
||||
volumes:
|
||||
node-logs:
|
||||
redis-data:
|
38
deploy/fluent-bit.conf
Normal file
38
deploy/fluent-bit.conf
Normal file
@ -0,0 +1,38 @@
|
||||
[SERVICE]
|
||||
Flush 1
|
||||
Daemon Off
|
||||
Log_Level info
|
||||
storage.path /tmp/fluentbit.log
|
||||
storage.sync normal
|
||||
storage.checksum on
|
||||
storage.backlog.mem_limit 5M
|
||||
|
||||
[INPUT]
|
||||
Name forward
|
||||
Listen 0.0.0.0
|
||||
Port 24224
|
||||
Storage.type filesystem
|
||||
|
||||
[OUTPUT]
|
||||
name stdout
|
||||
match *
|
||||
|
||||
[OUTPUT]
|
||||
Name pgsql
|
||||
Match stats.node
|
||||
Host meta-sink.ritual.net
|
||||
Port 5432
|
||||
User append_only_user
|
||||
Password ogy29Z4mRCLfpup*9fn6
|
||||
Database postgres
|
||||
Table node_stats
|
||||
|
||||
[OUTPUT]
|
||||
Name pgsql
|
||||
Match stats.live
|
||||
Host meta-sink.ritual.net
|
||||
Port 5432
|
||||
User append_only_user
|
||||
Password ogy29Z4mRCLfpup*9fn6
|
||||
Database postgres
|
||||
Table live_stats
|
23
deploy/redis.conf
Normal file
23
deploy/redis.conf
Normal file
@ -0,0 +1,23 @@
|
||||
# Listen on localhost
|
||||
bind 127.0.0.1 ::1
|
||||
|
||||
# Loglevel
|
||||
loglevel notice
|
||||
|
||||
# Path to log file
|
||||
logfile /var/log/redis/redis-server.log
|
||||
|
||||
# Number of databases
|
||||
databases 2
|
||||
|
||||
# Working directory
|
||||
dir /var/lib/redis
|
||||
|
||||
# Save to disk every 60 seconds if at least 1 change
|
||||
save 60 1
|
||||
|
||||
# Maximum memory before eviction starts
|
||||
maxmemory 1gb
|
||||
|
||||
# Eviction policy
|
||||
maxmemory-policy allkeys-lru
|
Reference in New Issue
Block a user