docks and stacks
This commit is contained in:
parent
7b6b1e4776
commit
9bd7f19c8f
7 changed files with 275 additions and 9 deletions
58
stacks/faceai.yml
Normal file
58
stacks/faceai.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
services:
|
||||
faceai:
|
||||
image: forgejo.maddoscientisto.net/maddo/faceai-client:latest
|
||||
container_name: regalami-faceai
|
||||
restart: unless-stopped
|
||||
command: sh -c "mkdir -p /data/logs && npm run start >> /data/logs/backend.log 2>&1"
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3001
|
||||
FACEAI_FRONTEND_URL: https://ai.regalamiunsorriso.it
|
||||
FACEAI_PUBLIC_BASE_URL: https://ai.regalamiunsorriso.it
|
||||
FACEAI_LEGACY_RETURN_URL: https://www.regalamiunsorriso.it/faceai_return.php
|
||||
FACEAI_SHARED_SECRET: disagio-spaghetti-science-lol-boh
|
||||
FACEAI_SESSION_COOKIE: rus_faceai_session
|
||||
FACEAI_REDIS_URL: redis://redis:6379
|
||||
FACEAI_QUEUE_NAME: faceai-searches
|
||||
FACEAI_RUNTIME_ROOT: /data/runtime
|
||||
FACEAI_UPLOAD_ROOT: /data/runtime/uploads
|
||||
FACEAI_LOG_ROOT: /data/logs
|
||||
FACEAI_PKL_ROOT: /data/pkl
|
||||
FACEAI_ENABLE_LOCAL_LEGACY_STATIC: 0
|
||||
volumes:
|
||||
- /var/docker/faceai/runtime:/data/runtime
|
||||
- /var/docker/faceai/logs:/data/logs
|
||||
- /mnt/nas12/nas2/RUS:/data/pkl:ro
|
||||
ports:
|
||||
- "127.0.0.1:3001:3001"
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
processor:
|
||||
image: forgejo.maddoscientisto.net/maddo/faceai-client:latest
|
||||
container_name: regalami-faceai-processor
|
||||
restart: unless-stopped
|
||||
command: sh -c "mkdir -p /data/logs && npm run start:processor >> /data/logs/processor.log 2>&1"
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
FACEAI_REDIS_URL: redis://redis:6379
|
||||
FACEAI_QUEUE_NAME: faceai-searches
|
||||
FACEAI_RUNTIME_ROOT: /data/runtime
|
||||
FACEAI_LOG_ROOT: /data/logs
|
||||
FACEAI_PKL_ROOT: /data/pkl
|
||||
FACEAI_MATCHER_BINARY: /opt/face-recognition/face_matcher
|
||||
FACEAI_WORKER_CONCURRENCY: 2
|
||||
FACEAI_WORKER_TIMEOUT_MS: 300000
|
||||
volumes:
|
||||
- /var/docker/faceai/runtime:/data/runtime
|
||||
- /var/docker/faceai/logs:/data/logs
|
||||
- /mnt/nas12/nas2/RUS:/data/pkl:ro
|
||||
- /var/docker/faceai/bin/Face_Recognition_Unix:/opt/face-recognition:ro
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: regalami-faceai-redis
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly no
|
||||
27
stacks/forgejo-runner.yml
Normal file
27
stacks/forgejo-runner.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
forgejo-docker-in-docker:
|
||||
image: docker:dind
|
||||
container_name: 'forgejo-docker-in-docker'
|
||||
privileged: true
|
||||
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
|
||||
restart: 'unless-stopped'
|
||||
|
||||
forgejo-runner:
|
||||
image: 'data.forgejo.org/forgejo/runner:11'
|
||||
links:
|
||||
- forgejo-docker-in-docker
|
||||
depends_on:
|
||||
forgejo-docker-in-docker:
|
||||
condition: service_started
|
||||
container_name: 'forgejo-runner'
|
||||
environment:
|
||||
DOCKER_HOST: tcp://forgejo-docker-in-docker:2375
|
||||
# User without root privileges, but with access to `./data`.
|
||||
user: 1001:1001
|
||||
volumes:
|
||||
- /var/docker/forgejo-runner/data/:/data
|
||||
restart: 'unless-stopped'
|
||||
#command: '/bin/sh -c "while : ; do sleep 1 ; done ;"'
|
||||
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'
|
||||
20
stacks/forgejo.yml
Normal file
20
stacks/forgejo.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
networks:
|
||||
forgejo:
|
||||
external: false
|
||||
|
||||
services:
|
||||
server:
|
||||
image: codeberg.org/forgejo/forgejo:14
|
||||
container_name: forgejo
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: always
|
||||
networks:
|
||||
- forgejo
|
||||
volumes:
|
||||
- /var/docker/forgejo:/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- '3000:3000'
|
||||
- '222:22'
|
||||
35
stacks/php-nginx.yml
Normal file
35
stacks/php-nginx.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: php-nginx
|
||||
services:
|
||||
php-nginx:
|
||||
cpu_shares: 90
|
||||
command: []
|
||||
container_name: php-nginx
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 3776M
|
||||
environment:
|
||||
- HOME=/root
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
- TZ=UTC
|
||||
- WEBHOME=/var/www/html
|
||||
hostname: php-nginx
|
||||
image: shinsenter/phpfpm-nginx:latest
|
||||
labels:
|
||||
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/php-nginx/icon.png
|
||||
ports:
|
||||
- target: 80
|
||||
published: "8002"
|
||||
protocol: tcp
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /var/www/html
|
||||
target: /var/www/html
|
||||
bind:
|
||||
create_host_path: true
|
||||
devices: []
|
||||
cap_add: []
|
||||
network_mode: bridge
|
||||
privileged: false
|
||||
13
stacks/web-blazor.yml
Normal file
13
stacks/web-blazor.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
maddoscientisto-web:
|
||||
image: forgejo.maddoscientisto.net/maddo/maddoscientisto-web:latest
|
||||
ports:
|
||||
- "8002:80"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1/ || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue