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."
|
||||
else
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
#
|
||||
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..."
|
||||
|
||||
# Start the frontend service
|
||||
@ -1360,7 +1350,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
||||
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" /h ome/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||
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
|
||||
|
||||
@ -1883,7 +1873,6 @@ devbox_init_command() {
|
||||
git pull
|
||||
fi
|
||||
|
||||
|
||||
popd > /dev/null
|
||||
fi
|
||||
else
|
||||
|
||||
@ -78,18 +78,11 @@ services:
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ${WORKING_HOME}/freeleaps2-redis-data:/var/lib/redis
|
||||
|
||||
devsvc:
|
||||
container_name: devsvc
|
||||
image: freeleaps/devsvc:${DEVSVC_IMAGE_TAG:-latest-linux-arm64}
|
||||
restart: always
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
|
||||
environment:
|
||||
- APP_NAME=devsvc
|
||||
- SERVICE_API_ACCESS_HOST=localhost
|
||||
@ -119,6 +112,15 @@ services:
|
||||
target: /app/log/devsvc
|
||||
networks:
|
||||
- devbox_freeleaps2-network
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
central_storage:
|
||||
container_name: central_storage
|
||||
@ -150,6 +152,15 @@ services:
|
||||
- type: bind
|
||||
source: ${WORKING_HOME}/logs/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:
|
||||
container_name: authentication
|
||||
@ -183,6 +194,15 @@ services:
|
||||
- type: bind
|
||||
source: ${WORKING_HOME}/logs/authentication
|
||||
target: /app/log/authentication
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
content:
|
||||
container_name: content
|
||||
@ -213,15 +233,21 @@ services:
|
||||
- type: bind
|
||||
source: ${WORKING_HOME}/logs/content
|
||||
target: /app/log/content
|
||||
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
notification:
|
||||
container_name: notification
|
||||
image: freeleaps/notification:${NOTIFICATION_IMAGE_TAG:-latest-linux-arm64}
|
||||
platform: linux/${ARCH:-arm64}
|
||||
restart: always
|
||||
depends_on:
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
|
||||
environment:
|
||||
- APP_NAME=notification
|
||||
- SERVICE_API_ACCESS_HOST=localhost
|
||||
@ -251,6 +277,15 @@ services:
|
||||
- type: bind
|
||||
source: ${WORKING_HOME}/logs/notification
|
||||
target: /app/log/notification
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
payment:
|
||||
container_name: payment
|
||||
image: freeleaps/payment:latest-linux-arm64
|
||||
@ -284,19 +319,21 @@ services:
|
||||
- type: bind
|
||||
source: /var/lib/docker/app/payment/log
|
||||
target: /app/log/payment
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
chat:
|
||||
container_name: chat
|
||||
build:
|
||||
context: ${WORKING_HOME}/freeleaps/apps
|
||||
dockerfile: ${WORKING_HOME}/freeleaps/apps/chat/Dockerfile
|
||||
restart: always
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- 8012:8012
|
||||
environment:
|
||||
@ -335,6 +372,15 @@ services:
|
||||
target: /app/log/freeleaps-chat
|
||||
networks:
|
||||
- devbox_freeleaps2-network
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
freeleaps2-mongodb-data:
|
||||
freeleaps2-gitea-data:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user