forked from freeleaps/freeleaps-pub
Merged PR 61: Update for devbox depends on for redis
Update for devbox depends on for redis
This commit is contained in:
commit
5731537101
@ -1197,7 +1197,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
|
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
|
||||||
else
|
else
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use online component dev environment."
|
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use online component dev environment."
|
||||||
sed -i 's#VITE_PROXY_WEBSOCKET_CHAT_URL=http://localhost:8012#VITE_PROXY_WEBSOCKET_CHAT_URL=https://freeleaps-alpha.com#g' /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
sed -i 's#VITE_PROXY_WEBSOCKET_CHAT_URL=wss://localhost:8012#VITE_PROXY_WEBSOCKET_CHAT_URL=wss://freeleaps-alpha.com#g' /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||||
sed -i 's#VITE_PROXY_API_CHAT_URL=http://localhost:8012#VITE_PROXY_API_CHAT_URL=https://freeleaps-alpha.com#g' /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
sed -i 's#VITE_PROXY_API_CHAT_URL=http://localhost:8012#VITE_PROXY_API_CHAT_URL=https://freeleaps-alpha.com#g' /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||||
|
|
||||||
git update-index --skip-worktree /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
git update-index --skip-worktree /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||||
@ -1278,16 +1278,6 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') USE_LOCAL_COMPONENT_VAL: \$USE_LOCAL_COMPONENT_VAL"
|
|
||||||
if [[ "\$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
|
|
||||||
else
|
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use online component dev environment."
|
|
||||||
sed -i "s|VITE_PROXY_WEBSOCKET_CHAT_URL=.*|VITE_PROXY_WEBSOCKET_CHAT_URL=wss://freeleaps-alpha.com|g" /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
|
||||||
sed -i "s|VITE_PROXY_API_CHAT_URL=.*|VITE_PROXY_API_CHAT_URL=https://freeleaps-alpha.com|g" /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Starting frontend compilation and startup..."
|
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Starting frontend compilation and startup..."
|
||||||
|
|
||||||
# Start the frontend service
|
# Start the frontend service
|
||||||
@ -1883,7 +1873,6 @@ devbox_init_command() {
|
|||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
@ -78,18 +78,11 @@ services:
|
|||||||
start_period: 30s
|
start_period: 30s
|
||||||
volumes:
|
volumes:
|
||||||
- ${WORKING_HOME}/freeleaps2-redis-data:/var/lib/redis
|
- ${WORKING_HOME}/freeleaps2-redis-data:/var/lib/redis
|
||||||
|
|
||||||
devsvc:
|
devsvc:
|
||||||
container_name: devsvc
|
container_name: devsvc
|
||||||
image: freeleaps/devsvc:${DEVSVC_IMAGE_TAG:-latest-linux-arm64}
|
image: freeleaps/devsvc:${DEVSVC_IMAGE_TAG:-latest-linux-arm64}
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
|
||||||
mongodb:
|
|
||||||
condition: service_healthy
|
|
||||||
rabbitmq:
|
|
||||||
condition: service_healthy
|
|
||||||
gitea:
|
|
||||||
condition: service_healthy
|
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=devsvc
|
- APP_NAME=devsvc
|
||||||
- SERVICE_API_ACCESS_HOST=localhost
|
- SERVICE_API_ACCESS_HOST=localhost
|
||||||
@ -119,6 +112,15 @@ services:
|
|||||||
target: /app/log/devsvc
|
target: /app/log/devsvc
|
||||||
networks:
|
networks:
|
||||||
- devbox_freeleaps2-network
|
- devbox_freeleaps2-network
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
central_storage:
|
central_storage:
|
||||||
container_name: central_storage
|
container_name: central_storage
|
||||||
@ -150,6 +152,15 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: ${WORKING_HOME}/logs/central_storage
|
source: ${WORKING_HOME}/logs/central_storage
|
||||||
target: /app/log/central_storage
|
target: /app/log/central_storage
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
authentication:
|
authentication:
|
||||||
container_name: authentication
|
container_name: authentication
|
||||||
@ -183,6 +194,15 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: ${WORKING_HOME}/logs/authentication
|
source: ${WORKING_HOME}/logs/authentication
|
||||||
target: /app/log/authentication
|
target: /app/log/authentication
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
content:
|
content:
|
||||||
container_name: content
|
container_name: content
|
||||||
@ -213,15 +233,21 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: ${WORKING_HOME}/logs/content
|
source: ${WORKING_HOME}/logs/content
|
||||||
target: /app/log/content
|
target: /app/log/content
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
notification:
|
notification:
|
||||||
container_name: notification
|
container_name: notification
|
||||||
image: freeleaps/notification:${NOTIFICATION_IMAGE_TAG:-latest-linux-arm64}
|
image: freeleaps/notification:${NOTIFICATION_IMAGE_TAG:-latest-linux-arm64}
|
||||||
platform: linux/${ARCH:-arm64}
|
platform: linux/${ARCH:-arm64}
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
|
||||||
rabbitmq:
|
|
||||||
condition: service_healthy
|
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=notification
|
- APP_NAME=notification
|
||||||
- SERVICE_API_ACCESS_HOST=localhost
|
- SERVICE_API_ACCESS_HOST=localhost
|
||||||
@ -251,6 +277,15 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: ${WORKING_HOME}/logs/notification
|
source: ${WORKING_HOME}/logs/notification
|
||||||
target: /app/log/notification
|
target: /app/log/notification
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
payment:
|
payment:
|
||||||
container_name: payment
|
container_name: payment
|
||||||
image: freeleaps/payment:latest-linux-arm64
|
image: freeleaps/payment:latest-linux-arm64
|
||||||
@ -284,19 +319,21 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: /var/lib/docker/app/payment/log
|
source: /var/lib/docker/app/payment/log
|
||||||
target: /app/log/payment
|
target: /app/log/payment
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
chat:
|
chat:
|
||||||
container_name: chat
|
container_name: chat
|
||||||
build:
|
build:
|
||||||
context: ${WORKING_HOME}/freeleaps/apps
|
context: ${WORKING_HOME}/freeleaps/apps
|
||||||
dockerfile: ${WORKING_HOME}/freeleaps/apps/chat/Dockerfile
|
dockerfile: ${WORKING_HOME}/freeleaps/apps/chat/Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
|
||||||
mongodb:
|
|
||||||
condition: service_healthy
|
|
||||||
rabbitmq:
|
|
||||||
condition: service_healthy
|
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
ports:
|
ports:
|
||||||
- 8012:8012
|
- 8012:8012
|
||||||
environment:
|
environment:
|
||||||
@ -335,6 +372,15 @@ services:
|
|||||||
target: /app/log/freeleaps-chat
|
target: /app/log/freeleaps-chat
|
||||||
networks:
|
networks:
|
||||||
- devbox_freeleaps2-network
|
- devbox_freeleaps2-network
|
||||||
|
depends_on:
|
||||||
|
mongodb:
|
||||||
|
condition: service_healthy
|
||||||
|
rabbitmq:
|
||||||
|
condition: service_healthy
|
||||||
|
gitea:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
freeleaps2-mongodb-data:
|
freeleaps2-mongodb-data:
|
||||||
freeleaps2-gitea-data:
|
freeleaps2-gitea-data:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user