initial
This commit is contained in:
commit
5657f76cba
20
.env
Normal file
20
.env
Normal file
@ -0,0 +1,20 @@
|
||||
CVTT_DOCKER_REGISTRY=cloud16.cvtt.vpn:5543
|
||||
|
||||
######################################
|
||||
STAT_PAIRS_SELECTOR_VERSION=2.3.5
|
||||
######################################
|
||||
|
||||
APP_NAME=SP_SELECTOR-CLD32-TSTR
|
||||
STAT_PAIRS_SELECTOR_LOG_DIR=/logs
|
||||
STAT_PAIRS_SELECTOR_LOG_FILE=%T.stat_pairs_selector.log
|
||||
STAT_PAIRS_SELECTOR_ADD_ARGS=
|
||||
|
||||
# CVTT settings
|
||||
CVTT_USER=1001:1001
|
||||
CONFIG_SERVICE=cloud16.cvtt.vpn:6789
|
||||
CONFIG_FILE=http://cloud16.cvtt.vpn:6789/apps/stat_pairs/stat_pairs_selector
|
||||
FGW_BASE_URL=http://cld32-tester.cvtt.vpn:23456
|
||||
|
||||
# Local settings
|
||||
PAIR_SELECTOR_REST_HOST=cld32-tester.cvtt.vpn
|
||||
PAIR_SELECTOR_REST_PORT=53001
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
logs/
|
||||
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
services:
|
||||
stat_pairs_selector:
|
||||
image: ${CVTT_DOCKER_REGISTRY}/stat_pairs_selector:${STAT_PAIRS_SELECTOR_VERSION}
|
||||
container_name: stat_pairs_selector
|
||||
pull_policy: always
|
||||
restart: unless-stopped
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
network_mode: host
|
||||
environment:
|
||||
APP_NAME: ${APP_NAME}
|
||||
STAT_PAIRS_SELECTOR_LOG_DIR: ${STAT_PAIRS_SELECTOR_LOG_DIR}
|
||||
STAT_PAIRS_SELECTOR_CONFIG_FILE: ${CONFIG_FILE}
|
||||
STAT_PAIRS_SELECTOR_LOG_FILE: ${STAT_PAIRS_SELECTOR_LOG_FILE}
|
||||
STAT_PAIRS_SELECTOR_ADD_ARGS: ${STAT_PAIRS_SELECTOR_ADD_ARGS}
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE}
|
||||
PAIR_SELECTOR_REST_HOST: ${PAIR_SELECTOR_REST_HOST}
|
||||
PAIR_SELECTOR_REST_PORT: ${PAIR_SELECTOR_REST_PORT}
|
||||
FGW_BASE_URL: ${FGW_BASE_URL}
|
||||
volumes:
|
||||
- ./logs:/logs
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://${PAIR_SELECTOR_REST_HOST}:${PAIR_SELECTOR_REST_PORT}/ping || exit 1"]
|
||||
interval: 60s
|
||||
timeout: 5s
|
||||
retries: 15
|
||||
start_period: 300s
|
||||
6
glance.sh
Executable file
6
glance.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd $(realpath $(dirname $0))
|
||||
|
||||
docker compose ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Service}}' | grep -v IMAGE | sort
|
||||
6
restart.sh
Executable file
6
restart.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd $(realpath $(dirname $0))
|
||||
|
||||
docker compose down && sleep 20 && docker compose up -d
|
||||
6
run.sh
Executable file
6
run.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd $(realpath $(dirname $0))
|
||||
docker compose up -d
|
||||
|
||||
cd -
|
||||
6
stop.sh
Executable file
6
stop.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd $(realpath $(dirname $0))
|
||||
docker compose down
|
||||
|
||||
cd -
|
||||
Loading…
x
Reference in New Issue
Block a user