This commit is contained in:
2026-03-14 10:59:02 +03:00
parent eac2217691
commit 432095ca3e
2 changed files with 30 additions and 44 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.idea/
data/

View File

@@ -1,33 +1,11 @@
services: services:
rustfs:
image: rustfs/rustfs:latest
container_name: rustfs
ports:
- "9000:9000"
- "9001:9001"
environment:
- RUSTFS_VOLUMES=/data/rustfs0
- RUSTFS_ADDRESS=0.0.0.0:9000
- RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
- RUSTFS_ACCESS_KEY=vadim
- RUSTFS_SECRET_KEY=!0218kiriLL
- RUSTFS_CONSOLE_ENABLE=true
- RUSTFS_CORS_ALLOWED_ORIGINS=*
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
- RUSTFS_OBS_LOGGER_LEVEL=info
- RUSTFS_OBJECT_CACHE_ENABLE=true
- RUSTFS_OBJECT_CACHE_TTL_SECS=300
volumes:
- rustfs_data_0:/data/rustfs0
- ./rustfs/logs:/app/logs
restart: unless-stopped
message: message:
image: git.madsky.ru/lotti/message:latest image: git.madsky.ru/lotti/message:latest
container_name: message container_name: message
ports: ports:
- "8070:8070" - "8070:8070"
volumes: volumes:
- ./message/config.yml:/app/config.yml - ./data/message/config.yml:/app/config.yml
restart: unless-stopped restart: unless-stopped
tracker: tracker:
image: git.madsky.ru/vadim/tracker:latest image: git.madsky.ru/vadim/tracker:latest
@@ -35,7 +13,7 @@ services:
ports: ports:
- "3300:3000" - "3300:3000"
volumes: volumes:
- ./tracker/config.yaml:/app/config.yaml - ./data/tracker/config.yaml:/app/config.yaml
restart: unless-stopped restart: unless-stopped
nats: nats:
image: nats image: nats
@@ -47,8 +25,8 @@ services:
- "6222:6222" - "6222:6222"
- "8222:8222" - "8222:8222"
volumes: volumes:
- ./nats.conf:/etc/nats/nats.conf - ./data/nats.conf:/etc/nats/nats.conf
- ./nats:/data - ./data/nats:/data
redis: redis:
image: redis:latest image: redis:latest
container_name: redis container_name: redis
@@ -57,14 +35,14 @@ services:
- "6379:6379" - "6379:6379"
command: ["redis-server", "--save", "60 1", "--loglevel", "warning"] command: ["redis-server", "--save", "60 1", "--loglevel", "warning"]
volumes: volumes:
- ./redis:/data - ./data/redis:/data
homebridge: homebridge:
image: homebridge/homebridge:latest image: homebridge/homebridge:latest
container_name: homebridge container_name: homebridge
restart: unless-stopped restart: unless-stopped
network_mode: host network_mode: host
volumes: volumes:
- ./homebridge:/homebridge - ./data/homebridge:/homebridge
logging: logging:
driver: json-file driver: json-file
options: options:
@@ -83,14 +61,14 @@ services:
ports: ports:
- "1883:1883" - "1883:1883"
volumes: volumes:
- ./mosquitto/config:/mosquitto/config - ./data/mosquitto/config:/mosquitto/config
postgres: postgres:
image: postgres:17.6-alpine image: postgres:17.6-alpine
container_name: postgres container_name: postgres
environment: environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
volumes: volumes:
- ./postgres:/var/lib/postgresql/data - ./data/postgres:/var/lib/postgresql/data
ports: ports:
- "5432:5432" - "5432:5432"
restart: unless-stopped restart: unless-stopped
@@ -107,7 +85,7 @@ services:
- GITEA__database__PASSWD=postgres - GITEA__database__PASSWD=postgres
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./gitea:/data - ./data/gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
@@ -115,17 +93,23 @@ services:
- "2222:22" - "2222:22"
depends_on: depends_on:
- postgres - postgres
volume-permission-helper: rustfs:
image: alpine image: rustfs/rustfs:latest
container_name: rustfs
ports:
- "9000:9000"
- "9001:9001"
environment:
- RUSTFS_ADDRESS=0.0.0.0:9000
- RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
- RUSTFS_ACCESS_KEY=vadim
- RUSTFS_SECRET_KEY=!0218kiriLL
- RUSTFS_CONSOLE_ENABLE=true
- RUSTFS_CORS_ALLOWED_ORIGINS=*
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
- RUSTFS_OBS_LOGGER_LEVEL=info
- RUSTFS_OBJECT_CACHE_ENABLE=true
- RUSTFS_OBJECT_CACHE_TTL_SECS=300
volumes: volumes:
- rustfs_data_0:/data0 - ./data/rustfs/fs:/data/
command: > restart: unless-stopped
sh -c "
chown -R 10001:10001 /data0 /data1 /data2 /data3 /logs &&
echo 'Volume Permissions fixed' &&
exit 0
"
restart: "no"
volumes:
rustfs_data_0: