2025-12-14 10:39:18 +03:00
|
|
|
services:
|
|
|
|
|
chip_manager_service:
|
2025-12-14 14:51:36 +03:00
|
|
|
build:
|
|
|
|
|
context: build/service/
|
|
|
|
|
dockerfile: Dockerfile
|
2025-12-14 10:39:18 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
|
|
|
|
- path: ./.env
|
|
|
|
|
ports:
|
|
|
|
|
- "1224:1224"
|
2025-12-14 14:51:36 +03:00
|
|
|
volumes:
|
|
|
|
|
- ./security.db:/home/security.db
|
2025-12-14 10:39:18 +03:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpus: '2'
|
|
|
|
|
memory: 2G
|
|
|
|
|
logging:
|
|
|
|
|
driver: "json-file"
|
|
|
|
|
options:
|
2025-12-14 14:51:36 +03:00
|
|
|
max-size: "10m"
|
|
|
|
|
max-file: "5"
|
2025-12-14 10:39:18 +03:00
|
|
|
networks:
|
|
|
|
|
- neuralink
|
2025-12-14 14:51:36 +03:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "nc", "-z", "localhost", "1224"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
2025-12-14 10:39:18 +03:00
|
|
|
db:
|
|
|
|
|
build: build/database/
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
|
|
|
|
- path: ./.env
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpus: '2'
|
|
|
|
|
memory: 2G
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "psql", "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 5
|
|
|
|
|
networks:
|
|
|
|
|
- neuralink
|
|
|
|
|
cleaner:
|
|
|
|
|
build: build/cleaner/
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
|
|
|
|
- path: ./.env
|
|
|
|
|
depends_on:
|
|
|
|
|
db:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpus: '2'
|
|
|
|
|
memory: 2G
|
|
|
|
|
networks:
|
|
|
|
|
- neuralink
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
neuralink:
|
|
|
|
|
driver: bridge
|