use .env for docker compose. fix #142 (#143)

This commit is contained in:
Leohearts
2026-02-27 19:06:59 +08:00
committed by GitHub
parent b47258b15e
commit cf7d578005
+4
View File
@@ -168,6 +168,10 @@ if [ "$USE_CN_MIRROR" = true ]; then
echo "${GREEN}✓ Using China mainland mirror (memoh.cn)${NC}" echo "${GREEN}✓ Using China mainland mirror (memoh.cn)${NC}"
fi fi
echo POSTGRES_PASSWORD="${PG_PASS}" >> .env
echo MEMOH_CONFIG=./config.toml >> .env
echo MEMOH_DATA_DIR="{$MEMOH_DATA_DIR}" >> .env
echo "" echo ""
echo "${GREEN}Pulling latest Docker images...${NC}" echo "${GREEN}Pulling latest Docker images...${NC}"
$DOCKER compose $COMPOSE_FILES pull $DOCKER compose $COMPOSE_FILES pull