mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-08 07:26:09 +01:00
Added support for welcome app
This commit is contained in:
22
dist/apps/welcome/docker-compose.yaml
vendored
Normal file
22
dist/apps/welcome/docker-compose.yaml
vendored
Normal 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
8
dist/apps/welcome/start.sh
vendored
Normal 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
7
dist/apps/welcome/stop.sh
vendored
Normal 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
7
dist/apps/welcome/test.sh
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user