This commit is contained in:
@ -8,13 +8,14 @@ x-app-common: &app-common
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
env_file:
|
env_file:
|
||||||
- .test.env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
DEBUG: false
|
DEBUG: false
|
||||||
DATABASE_URL: "postgresql://postgres:example@db:5432/postgres"
|
DATABASE_URL: "postgresql://postgres:example@db:5432/postgres"
|
||||||
REDIS_URL: "redis://valkey:6379/0"
|
REDIS_URL: "redis://valkey:6379/0"
|
||||||
volumes:
|
volumes:
|
||||||
- "./container:/var/opt/cprocsp/keys"
|
- "./container/certt.cer:/var/opt/cprocsp/keys/cert.cer"
|
||||||
|
- "./container/cont:/app/cont"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
valkey:
|
valkey:
|
||||||
|
|||||||
@ -1,9 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Set the license
|
||||||
cpconfig -license -set "$CRYPTOPRO_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.cer -cont "$CRYPTOPRO_CONTAINER"
|
||||||
# certmgr -inst -file /var/opt/cprocsp/keys/cert.p7b -cont "$CRYPTOPRO_CONTAINER"
|
|
||||||
|
|
||||||
# python -m alembic upgrade head
|
# python -m alembic upgrade head
|
||||||
python server.py
|
python server.py
|
||||||
|
|||||||
Reference in New Issue
Block a user