Added support for welcome app

This commit is contained in:
SKP
2019-03-31 23:00:44 +02:00
committed by kexkey
parent ac927c8131
commit fd6e791d3c
6 changed files with 103 additions and 0 deletions

22
dist/apps/welcome/docker-compose.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
version: "3"
services:
cyphernode_welcome:
environment:
- "TRACING=1"
image: cyphernode_welcome
volumes:
- "/Users/jash/go/src/cyphernode_welcome/data_docker:/data"
networks:
- cyphernodeappsnet
restart: always
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.rule=PathPrefix:/welcome; PathPrefixStrip:/welcome"
- "traefik.frontend.passHostHeader=true"
- "traefik.enable=true"
- "traefik.port=8080"
# - "traefik.frontend.auth.basic.usersFile=${SHARED_HTPASSWD_PATH}"
networks:
cyphernodeappsnet:
external: true

8
dist/apps/welcome/start.sh vendored Normal file
View File

@@ -0,0 +1,8 @@
echo "SCRIPT_NAME: $SCRIPT_NAME"
echo "SHARED_HTPASSWD_PATH: $SHARED_HTPASSWD_PATH"
echo "APP_SCRIPT_PATH: $APP_SCRIPT_PATH"
echo "APP_START_SCRIPT_PATH: $APP_START_SCRIPT_PATH"
export SHARED_HTPASSWD_PATH
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml up -d --remove-orphans

7
dist/apps/welcome/stop.sh vendored Normal file
View File

@@ -0,0 +1,7 @@
echo "SCRIPT_NAME: $SCRIPT_NAME"
echo "SHARED_HTPASSWD_PATH: $SHARED_HTPASSWD_PATH"
echo "APP_SCRIPT_PATH: $APP_SCRIPT_PATH"
echo "APP_START_SCRIPT_PATH: $APP_START_SCRIPT_PATH"
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml down

7
dist/apps/welcome/test.sh vendored Normal file
View File

@@ -0,0 +1,7 @@
echo "SCRIPT_NAME: $SCRIPT_NAME"
echo "SHARED_HTPASSWD_PATH: $SHARED_HTPASSWD_PATH"
echo "APP_SCRIPT_PATH: $APP_SCRIPT_PATH"
echo "APP_START_SCRIPT_PATH: $APP_START_SCRIPT_PATH"
echo "No tests"