Правки
All checks were successful
Build And Push / publish (push) Successful in 1m29s

This commit is contained in:
2025-09-24 05:34:40 +03:00
parent 4e6b2f514d
commit d64320426b
2 changed files with 12 additions and 3 deletions

View File

@ -8,13 +8,14 @@ x-app-common: &app-common
restart: unless-stopped
stop_signal: SIGINT
env_file:
- .test.env
- .env
environment:
DEBUG: false
DATABASE_URL: "postgresql://postgres:example@db:5432/postgres"
REDIS_URL: "redis://valkey:6379/0"
volumes:
- "./container:/var/opt/cprocsp/keys"
- "./container/certt.cer:/var/opt/cprocsp/keys/cert.cer"
- "./container/cont:/app/cont"
services:
valkey:

View File

@ -1,9 +1,17 @@
#!/bin/bash
set -e
# Set the license
cpconfig -license -set "$CRYPTOPRO_LICENSE"
# Create container folder
mkdir -p /var/opt/cprocsp/keys/appuser/cont
# Copy container
cp -r /app/cont /var/opt/cprocsp/keys/appuser/
# Install container
certmgr -inst -file /var/opt/cprocsp/keys/cert.cer -cont "$CRYPTOPRO_CONTAINER"
# certmgr -inst -file /var/opt/cprocsp/keys/cert.p7b -cont "$CRYPTOPRO_CONTAINER"
# python -m alembic upgrade head
python server.py